This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Date & Time
Mathematica has a highly flexible system for handling dates and times in almost any format, automatically converting between formats, and when necessary parsing strings representing dates.
DateString current or specified date as a string in many possible formats
"DateTime"  ▪ "MonthName"  ▪ "DayName"  ▪ "Hour24"  ▪ ...
$DateStringFormat default date string format
$TimeZone resettable current time zone
DateList date elements as numbers in {y, m, d, h, m, s} format
AbsoluteTime absolute time in seconds
Clock real-time dynamic clock variable
Date Operations
DatePlus add or subtract days, weeks, etc. to a date list or string
DateDifference find the difference in days, weeks, etc. between two dates
DateListPlot plot data associated with dates specified in any format
Date Import/Export
"Table"  ▪ "XLS"  ▪ "MDB"  ▪ "ApacheLog"  ▪ "MBOX"  ▪ ...
DatePattern date pattern for string manipulation
"XLS"  ▪ "ApacheLog"  ▪ "MBOX"