Date

Date has been superseded by DateList since Version 6.0.

Date[]

gives the current local date and time in the form {year,month,day,hour,minute,second}.

Details

  • Date[] uses whatever date and time have been set on your computer system. It performs no corrections for time zones, daylight saving time, etc.
  • Date[z] gives the date in time zone z. This is inferred by knowing your local date and time, and local time zone. The time zone is given as the number of hours to be added to Greenwich Mean Time to obtain local time.
  • All values returned by Date[] are integers, except the number of seconds. The number of seconds is never more accurate than $TimeUnit.
  • You can compare two lists returned by Date using Order.

Examples

Basic Examples  (1)

Wolfram Research (1991), Date, Wolfram Language function, https://reference.wolfram.com/language/ref/Date.html.

Text

Wolfram Research (1991), Date, Wolfram Language function, https://reference.wolfram.com/language/ref/Date.html.

CMS

Wolfram Language. 1991. "Date." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Date.html.

APA

Wolfram Language. (1991). Date. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Date.html

BibTeX

@misc{reference.wolfram_2024_date, author="Wolfram Research", title="{Date}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Date.html}", note=[Accessed: 12-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_date, organization={Wolfram Research}, title={Date}, year={1991}, url={https://reference.wolfram.com/language/ref/Date.html}, note=[Accessed: 12-October-2024 ]}