Forum Discussion

gdave's avatar
gdave
Regular Contributor
4 years ago

Keying Future Date

Hi all   In the date field, I would like to enter a future date which is 1yr in future from today's date.   I am using a code expression (in delphi) and somehow not able to get it right. The belo...
  • A_Roskoshnyi's avatar
    A_Roskoshnyi
    4 years ago

    Perhaps for delfi there is a problem in quotation marks (although both work for me in JScript). Try single quotes with my expression:

    aqConvert.DateTimeToFormatStr(aqDateTime.AddMonths(aqDateTime.Today(), 24), '%d/%m/%Y');