gdave
7 years agoRegular Contributor
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 message :"Unable to evaluate the operation's "Value" parameter. Error: Undeclared identifier: CurrentDate"
My Code is as below:
aqConvert.DateTimetoFormatStr(aqDateTime.AddDays(CurrentDate, -1), '%d/%m/%Y')
Can anyone please confirm the correct script as I doubt above is incorrect. Thanks
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')