({{, (RefLink[DateFunction, paclet:ref/DateFunction]) 
is an option for (RefLink[DateListPlot, paclet:ref/DateListPlot]) that specifies how dates given as input should be converted to date lists.}})

OpenersNotesSection(Spacer1)Details

A setting such as (RefLink[DateFunction, paclet:ref/DateFunction])->((RefLink[DateList, paclet:ref/DateList])[#,{"(Subscript[e, 1])",…}]&) specifies that a sequence of elements "(Subscript[e, i])" should be extracted from each date. »

The default setting (RefLink[DateFunction, paclet:ref/DateFunction])->(RefLink[Automatic, paclet:ref/Automatic]) automatically converts standard non-ambiguous dates.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Prepend a year to create dates from {month,day} lists:

data={{{10,1},8},{{10,10},10},{{10,20},12},{{10,24},14},{{11,5},15}, {{11,15},20}};

DateListPlot[data,DateFunction:>(Join[{2006},#]&)]

Interpret dates indexed by a week number:

data=Table[{i,Sin[i/Pi]},{i,50}];

DateListPlot[data,DateFunction:>(DateList[{2006,1,1+#*7}]&)]

OpenersExampleSection1(Spacer1)Scope  (1)

Define functions for interpreting ambiguous date strings:

data={{"06/01/06",8},{"07/01/06",10},{"08/01/06",12},{"09/01/06",14},{"10/01/06",15}, {"11/01/06",20}};

DateListPlot[data,DateFunction:>(DateList[{#,{"Month","Day","YearShort"}}]&)]

DateListPlot[data,DateFunction:>(DateList[{#,{"Day","Month","YearShort"}}]&)]

DateListPlot[data,DateFunction:>(DateList[{#,{"YearShort","Month","Day"}}]&)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DateList, paclet:ref/DateList])  ▪  (RefLink[AbsoluteTime, paclet:ref/AbsoluteTime])  ▪  (RefLink[DateString, paclet:ref/DateString])  ▪  (RefLink[DateTicksFormat, paclet:ref/DateTicksFormat])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Date & Time Visualization, paclet:guide/DateAndTimeVisualization])}, {▪(RefLinkPlain[Financial Visualization, paclet:guide/FinancialVisualization])}})}})