Date, Date$ (functions)
Syntax | Date[$] [()] |
Description | Returns the current system date. |
Comments | The
Date$
function returns the date using the short date format. The
Date
function returns the date as a
Date
variant. Use the
Date/Date$
statements to set the system date. The date is returned using the current short date format (defined by the operating system). The Date$ function does not properly support international formats. Use the Date function instead. |
Example |
This example saves the current date to
TheDate$,
then changes the date and displays the result. It then changes the date back to the saved date and displays the restored date.
|
See Also | CDate, CVDate (functions); Time, Time$ (functions); Date, Date$ (statements); Now (function); Format, Format$ (functions); DateSerial (function); DateValue (function). |