DateFunction

DateFunction

is an option for DateListPlot and TemporalData that specifies how dates given as input should be interpreted.

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:

Interpret dates indexed by a week number:

Scope  (2)

Define functions for interpreting ambiguous date strings for DateListPlot:

Define functions for interpreting ambiguous date strings for creating TemporalData:

Introduced in 2007
 (6.0)