Date()

Syntax

Date = Date([Year, Month, Day, Hour, Minute, Second])
Description
Returns the current system date value (number of seconds elapsed since 01/01/1970 0:00:00 up to the current time). If Year, Month, Day, Hour, Minute and Second parameters are specified, it returns the date representation in seconds. FormatDate() can be used to transform the date value into a user-readable format.

Example:

  Debug Date() / (3600*24*365)  ; will print the number of years since 01/01/1970 and now
  Debug Date(1999, 12, 31, 23, 59, 59)  ; will print '946684799' (number of seconds between 01/01/1970 0:00:00 and 12/31/1999 23:59:59)
Note: supported date/time values are 1970-01-01, 00:00:00 for the minimum and 2038-01-19, 03:14:07 for the maximum.

Supported OS

All

<- AddDate() - Date Index - Day() ->