DateFunction

DateFunction

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

Details

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

Examples

open allclose all

Basic Examples  (2)

Prepend a year to create dates from {month,day} 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]=

Scope  (1)

See Also

DateList  AbsoluteTime  DateString  DateTicksFormat

Introduced in 2007
(6.0)