Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue in full calendar first day option

I have configured my week start on Wednesday. I am setting cal date as jan 7(tuesday). now i am going to week view. Its shows the week date from 2nd jan to 8th jan. What I except is, for given date 7, its should choose week duration from jan 5(sunday) to jan 11. Please refer the screen shot and help me.

http://s30.postimg.org/epq10h2o1/edited.png

like image 262
Sundar racer Avatar asked Jan 07 '14 13:01

Sundar racer


1 Answers

Add first day to the calendar

$('#calendar').fullCalendar({
            header: {
                left: 'prev,next,today',
                center: 'title',
                right: 'month,basicWeek,agendaList'
            },               
            firstDay: 0
 });

Sunday=0, Monday=1, Tuesday=2, etc.

see --> http://fullcalendar.io/docs/display/firstDay/

like image 84
Prasanth Jaya Avatar answered Oct 08 '22 21:10

Prasanth Jaya