Date
Qubes 5.4 Creates a date based on a year, a month and a day, extracts the date part of a date/time, or returns the current date.
Syntax
Date(year, month, day)Date(dateTime)Date()
year = the four-digit year of the date you want to create
month = the month of the date you want to create (from 1 to 12)
day = the day of the date you want to create (from 1 to 31)
month = the month of the date you want to create (from 1 to 12)
day = the day of the date you want to create (from 1 to 31)
Remarks
If the date is not valid (such as February 30), the function will return #VAL!.
If a single parameter is entered, it will be interpreted as a date/time, and the date portion will be extracted (Qubes 5.4).
If no parameter is entered, it will return the current date (Qubes 5.4).
To perform the reverse operation and break down a date into its parts, use Year, Month and Day.
Examples
Date(2009, 2, 28) = 28 February 2009Date(2009, 2, 29) = #VAL! (because 2009 was not a leap year)Date(Now) = current date (without the time), so the same as Date()