Now(indicator)
Indicator = ‘d’ returns the date in YYYYMMDD
‘t’ returns the time in HHMMSS
Return type:
Numeric value of the cirrent date or time (8,0 or 6,0)
Description:
This is a function that automatically returns the current system date or time.
Much like the “time” function in RPG. Only difference is that this can be used inside functions.
Example:
if now('d') > 20040901
or
Logdate = now('d')
Logtime = now('t')
Notes and Restrictions:
Using “now” inside a loop will return the current time (or date) and therefore a loop that runs for more than a second will not return the same time for each function call it will be increased as time passes. So if you want a creation of multiple records to have the same creation time, “Eval” the time variable outside the loop.