Icon Date

Unit: Internal

Available In: Client and Server Applications

function Date: DateTime

The Date function returns the current date. The return value is a DateTime value.

Information DateTime values encompass both the date and time portion for a given date/time. The Date function will set the time portion of the date/time to the beginning (exact midnight of the current/prior day) of the returned date.

Examples

X := DateToStr(Date);  // X is '2/13/2012'
Image