Forum Discussion

gdave's avatar
gdave
Regular Contributor
6 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
    6 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')