Calendar Report: Set first day to Monday

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 877
Location: Switzerland

Calendar Report: Set first day to Monday

Post by mpol_ch »

Hi,
I am testing the calendar report and want to set the first to Monday.
Currently it is set to Sunday.

I am usind the following code to set it to monday in page_load event

$this->FullCalendar->setOption('firstDay', 1);

But this is not helping.
Where should I put this code to get the first day as Monday?


mobhar
User
Posts: 11726

Post by mobhar »

You may simply put the following code in Page_Head server event:

<script>
    ew.calendarOptions.fullCalendarOptions.firstDay = 1; // 0 = Sunday, 1 = Monday
</script>

mpol_ch
User
Posts: 877
Location: Switzerland

Post by mpol_ch »

Perfect.

Thanky you.

mpol_ch


Post Reply