8. Choosing DayFormat - DateTime.ToString() Parameters

The DayFormat property specifies the DateTime format to be used for day headers. It accepts the same string as DateTime.ToString(string).

Standard format examples

Here are the examples for EN-US locale:  

DayFormat value Sample header
"d" 6/5/2006
"D" Monday, June 5, 2006
"m" or "M" June 5

Custom format examples

DayFormat value Sample header
"dddd" Monday
"ddd" Mo
"dd" 05
"%d" 5
"M/dd" 6/05
"M/d" 6/5
"MM/dd" 06/05
"d MMMM yyyy" 5 June 2006
"yyyy-MM-dd" 2006-06-05


DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java