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

How to set the start of the week as monday

Asked by Bikram Jeet Singh
1 year ago.

Hello,

Here, the start if the week is 1st of Jan which is "Sunday". How can we set the week start day as Monday for Gantt Chart View.

Answer posted by Dan Letecky [DayPilot]
1 year ago.

The Gantt Chart component uses the "locale" property to determine the first day of week:
https://api.daypilot.org/daypilot-gantt-locale/

You can use one of the built-in locales or create your own. See also:
https://api.daypilot.org/daypilot-locale-class/

Comment posted by Dan Letecky [DayPilot]
1 year ago.

In the latest sandbox build (2023.1.5514+) it is now also possible to set the first day of week directly using the "weekStarts" property:
https://api.daypilot.org/daypilot-gantt-weekstarts/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.