Creating Calendar using X++ Code


I want to create a calendar form, in which user will create a calendar and week should always start from Sunday.

It is same like standard calendar but the main change is Week Number should be counted from Sunday (Week should start from Sunday)

Thanks if any can help.


Calendars (WorkCalendarTable) don’t know anything about when weeks start and Periods (ProjPeriodTable) have a field for that (WeekStart), so what exactly do you need to change?

Also notice that ISO week numbers don’t depend on actual week start day.