Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Date & Time >

$DateStringFormat

$DateStringFormat
gives the default format to use for date strings generated by DateString.
  • A typical initial default setting is $DateStringFormat="DateTimeShort".
Use long date format:
Specify your own format:
Use long date format:
In[1]:=
Click for copyable input
Out[1]=
 
Specify your own format:
In[1]:=
Click for copyable input
Out[1]=
Include a time zone:
Use $DateStringFormat to set the default format for date strings within DatePlus:
Date string formats match date patterns:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team