The HeaderDateFormat determines the format of the date in column header. It accepts the same values as DateTime.ToString(string) method.

ASP.NET WebForms

The default value is "d" which will use the default format set for the current Culture.


You can specify the date format in the column headers using headerDateFormat property. It accepts DayPilot.Date.toString(pattern) format string.

If the headerDateFormat is not specified, the datePattern value of the current locale will be used.


<div id="dp"></div>


  var dp = new DayPilot.Calendar("dp");
  // ...
  dp.headerDateFormat = "dddd"; // day of week, long format (e.g. "Monday")