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:

Wolfram Research (2007), DateFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/DateFunction.html.

Text

Wolfram Research (2007), DateFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/DateFunction.html.

CMS

Wolfram Language. 2007. "DateFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DateFunction.html.

APA

Wolfram Language. (2007). DateFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DateFunction.html

BibTeX

@misc{reference.wolfram_2024_datefunction, author="Wolfram Research", title="{DateFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/DateFunction.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_datefunction, organization={Wolfram Research}, title={DateFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/DateFunction.html}, note=[Accessed: 23-November-2024 ]}