Home » » jQuery datepicker first week monday

jQuery datepicker first week monday

Written By 1 on Monday, September 5, 2011 | 7:40 PM


The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.
By default, the datepicker calendar opens in a small overlay onFocus and closes automatically onBlur or when a date is selected. For an inline calendar, simply attach the datepicker to a div or span.


Change the first week from Sunday=>Monday 

Just set the firstDay:1 which is 0 by default
jQuery('#date').datepicker({ 
changeMonth: true,
changeYear: true,
dateFormat: "mm/dd/yy",
firstDay: 1
});

Demo: http://docs.jquery.com/UI/Datepicker

0 Comment:

Post a Comment