Syntax:
date$ [( formatString$ )]
Description:
date$ returns a string based on the current date. It may be used both with and without a formatString$.
Using date$ without a formatString$ returns the current date as a string containing two digit numerals each for month, day and year separated by slash marks, specifically in "MM/DD/YY" format.
Using date$ with a formatString$ returns a string based on the current date and formatted based on formatString$.
The formatString$ must contain Unicode Date and Time symbols as shown below and in Appendix I - Data & Time Symbols.
Example:
print date$
print date$("EEE, MMM d, yyyy")
print date$("MMMM d, yyyy")
print "This is day ";date$("D");" of the year"
01/14/10
Thu, Jan 14, 2010
January 14, 2010
This is day 14 of the year
More Date & Time symbols can be found in Appendix I - Data & Time Symbols.
See Also:
time$; Appendix I - Data & Time Symbols