Forum Discussion

G-wagon's avatar
G-wagon
Regular Contributor
8 years ago
Solved

aqDateTime

Hi all   I was trying to validate a date which is displayed on my screen. I am using below Code Expression to confirm that the date displayed is yesterday's date however I get an 'Exception' error ...
  • cunderw's avatar
    cunderw
    8 years ago

    CurrDate is not something built in to the aqDateTime, not sure we're you're getting that. 

     

    I think what you're looking for is aqDateTime.Today()

     

    aqConvert.DateTimeToFormatStr(aqDateTime.AddDays(aqDateTime.Today(),-1),'%d/%m/%Y')