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

JavaScript

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.

Example

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

<script>

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

</script>

ASP.NET WebForms

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