search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Changing date format on Day/Week view

Related article: Open-Source HTML5/JavaScript Calendar with Day/Week/Month Views (PHP, MySQL)
Asked by Anonymous
8 days ago.

Hi, I would like to know how to change the date in day/week format from American Month/Day/Year to Australian Day/Month/Year

Thank you.

Answer posted by Dan Letecky [DayPilot]
8 days ago.

You can use the locale property to apply culture-specific settings (such as date format, first day of week….).

const calendar = new DayPilot.Calendar("calendar", {
  locale: "en-au",
  // ...
});
calendar.init();

For column headers, you can use the timeHeaderFormat property to set the desired pattern, or manually customize the text or HTML using the onBeforeHeaderRender event handler.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):