DateFunction

DateFunction
is an option for DateListPlot that specifies how dates given as input should be converted to date lists.

DetailsDetails

  • A setting such as DateFunction->(DateList[#,{"e1",}]&) specifies that a sequence of elements should be extracted from each date. »
  • The default setting DateFunction->Automatic automatically converts standard non-ambiguous dates.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Prepend a year to create dates from lists:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Interpret dates indexed by a week number:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)