For Date literals, use the DATETIME key literal. After the keyword, specify the year, month, day, hours, minutes, and seconds in parentheses, separated by commas. Specifying the time part is optional.

DATETIME(1975, 1, 06)
DATETIME(2006, 12, 2, 23, 56, 57)

In this example the first literal stands for January 6, 1975. The second literal stands for December 2, 2006, 11:56:57 PM.

Next page: Boolean

Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.