DATE$

DATE$

RETURNS THE CURRENT DATE

  • Type: System Variable
  • Parameter: 0
  • Group: System

ACTION

The system variable DATE$ returns the current date in a string formatted MM/DD/YYYY with MM for the month, DD for the day and YYYY for the year.

Remark: the keyword DATE$ ends by '$' because the returned value is a string.

SYNTAX: DATE$ in an expression

USE

  • The system variable DATE$ is used to know the date.

ERROR

  • None.

EXAMPLE

print "current date : "+date$

print "current day : "+str$(date_day)

print "current month : "+str$(date_month)

print "current year : "+str$(date_year)

SEE ALSO

TIME$

TIME_HOUR

TIME_MINUTE

TIME_SECOND