Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,
In Jquery FullCalendar have default week day is sunday.But i want to week day start on monday and i don't want sunday column.Please give me some ideas about that FullCalendar.

Thanks & Regards
Hari
Posted
Updated 9-May-13 21:27pm
v3

1 solution

Try this:

C#
$('#datepickerfield').datepicker({
    constrainInput: true,   // prevent letters in the input field
    minDate: new Date(),    // prevent selection of date older than today
    showOn: 'button',       // Show a button next to the text-field
    autoSize: true,         // automatically resize the input field
    altFormat: 'yy-mm-dd',  // Date Format used
    beforeShowDay: $.datepicker.noWeekends,     // Disable selection of weekends
    firstDay: 1 // Start with Monday
})


or this

C#
//getter
var firstDay = $('.selector').datepicker('option', 'firstDay');
//setter
$('.selector').datepicker('option', 'firstDay', 1);
 
Share this answer
 
Comments
Hari Krishna Prasad Inakoti 9-May-13 6:52am    
@SukantaDey,
actually i dnt want sunday in my fullcalendar.That is not datepicker

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900