These examples show you some typical date and time calculations.
uDate('now')
Compute the last day of the current month:
uDate('now','start of month','+1 month','-1 day')
Compute the date and time given a UNIX timestamp 1092941466:
uDatetime(1092941466, 'unixepoch')
Compute the date and time given a UNIX timestamp 1092941466, and compensate for your local time zone:
uDatetime(1092941466, 'unixepoch', 'localtime')
Compute the current UNIX timestamp:
uFormatDate ('%s','now')
Compute the number of seconds between two dates:
uJuliandate('now')*86400 - uJuliandate ('2004-01-01 02:34:56')*86400
Compute the date of the first Tuesday in October (January + 9) for the current year:
uDate('now','start of year','+9 months','weekday 2')