({{, (RefLink[DateTicksFormat, paclet:ref/DateTicksFormat]) 
is an option for (RefLink[DateListPlot, paclet:ref/DateListPlot]) which specifies how date tick labels should be formatted.}})

OpenersNotesSection(Spacer1)Details

(RefLink[DateTicksFormat, paclet:ref/DateTicksFormat])->(RefLink[Automatic, paclet:ref/Automatic]) chooses tick labels based on the range of dates to be plotted.

(RefLink[DateTicksFormat, paclet:ref/DateTicksFormat])->{"(Subscript[e, 1])","(Subscript[sep, 12])","(Subscript[e, 2])",…} concatenates date elements "(Subscript[e, i])" with the specified separators. »

Any of the date elements from (RefLink[DateString, paclet:ref/DateString]) can be used.

Typical elements include:

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Plot date-based data using default and specified ticks:

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

{DateListPlot[data],DateListPlot[data,DateTicksFormat->{"MonthShort","/","Day"}]}

Specify both month and year information for ticks:

data={{{2000,7},8},{{2001,7},10},{{2002,7},12},{{2003,7},14},{{2004,7},15}, {{2005,7},20}};

{DateListPlot[data],DateListPlot[data,DateTicksFormat->{"MonthNameShort"," ","YearShort"}]}

OpenersExampleSection1(Spacer1)Scope  (2)

Specify formats on any time scale:

DateListPlot[{13,14,17,24,26,28,29,31,42,44},{"1:00 PM",Automatic,"Hour"},DateTicksFormat->{"Hour12Short","AMPM"}]

Give date formats for ticks at specific positions:

DateListPlot[Range[10],{2000},DateTicksFormat->{"Month","/","Year"},FrameTicks->{{{2002,5},{2006,9}},Automatic,Automatic,Automatic}]

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

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