Sets the current system date.
Date = date |
If date is a string, Date attempts to convert it to a date using the date separators you specified for your system. If it can't be converted to a valid date, an error occurs.
For systems running Microsoft Windows, the required date specification must be a date from January 1, 1980 through December 31, 2079. For systems running Mac OS 9 and later, date must be a date from January 1, 1901 through December 31, 2037.
Note: Changing date is only possible if you have enough rights, required by the system.
Dim MyDate MyDate = #2/17/1995# ' Assign a date. Date = MyDate ' Change system date. |
See Also |
Date Function, Time Function, Time Statement |