DATETIME

Returns the current system date and time.

DATETIME()

PARAMETERS

NONE

Example:
To automatically store the current system date and time in your InvoiceDate field whenever a new record is added, add the following code to your forms ON ADD event: (Note: assumes you have bound you’re the InvoiceDate field to a textbox with TAG name of InvoiceDate)

SETVALUE(~InvoiceDate~//DATETIME())