Calender Monday first day of the week

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
gregor4711
User
Posts: 66

Calender Monday first day of the week

Post by gregor4711 »

How can I customize js picup calender to shows "Mon" as first day of the week and not "Sun"?


danielc
User
Posts: 1601

Post by danielc »

If you mean js popup calendar, you can go to this path(if you have enabled jscalendar extension), yourproject/calendar/doc/reference.pdf. You can find out how to modify the "firstday".


gregor4711
User
Posts: 66

Post by gregor4711 »

works! many Thanks


dh1340
User
Posts: 58

Post by dh1340 »

Hi Gregor, could you explain exactly, where do make this changes to monday ?
I found it in the calender.js firstdayofweek changed to 1
and calendar-setup.js firstDay =1

but that doesnt work ?

THX
david


arbei
User
Posts: 9355

Post by arbei »

PHPMaker 2018 using Bootstrap DateTimePicker and you need to use and change the locale under moment/locale to change the first day of the week.

For example:
Add your code in [Advanced] -> [Project] -> [Options]
{"locale":"en-gb"}

And update the en-gb.js under "/<application root>/moment/locale" of the generated files


dh1340
User
Posts: 58

Post by dh1340 »

ok - but I am still on 2017..
any idea for that ?
THX
David


Post Reply