lang • date

Date

Result = Date ( [ Expression ] )

Return the date part of a date & time expression. If the expression is omitted, then the today date is returned.

The current localization is used, i.e. the date part in the current timezone is returned.

In other words, that function moves the date in the past at 0:00, in the current local time.

Example

Print Now; " -> "; Date(Now)
05/16/2002 15:10:59 -> 05/16/2002

Date (2)

Date = Date ( Year , Month , Day [ , Hours , Minutes , Seconds ] )

Make a local date from its components.

The date components are in local time.

Examples

Print Date(1972, 9, 6, 1, 5, 17)
09/06/1972 01:05:17
Print Date(1972, 9, 6, 1, 5, 17)
Print CFloat(Date(1972, 9, 6, 1, 5, 17))
06.09.1972 01:05:17
2473671,04533565

See also