Reputation: 814
I have applied a jQuery calendar in my website, and it functions okay. However, the initial display format is Sun, Mon, Tue ... Sat, in which I would like to change to Mon, Tue, ... Sun.
Though I have modified all "Sunday", "Sun", "Su" in all locations within the site and the header of the calender works well, however, the arrangement of the date blocks are still as if Sunday is at the beginning...
Actually, what else I have to do inorder to correct it? Thanks a lot.
(Please note Apr 1 is sunday and should be located at the last column)
Upvotes: 2
Views: 302
Reputation:
put this code in your jquery datepicker function where you define defaults
dayNamesMin:[ 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su']
if not then try this one
dayNamesShort:[ 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat','Sun']
Upvotes: 0
Reputation: 9533
You will see in the documentation here that you can set option first day
$( ".selector" ).datepicker({ firstDay: 1 });
Sunday is 0, Monday is 1
Cheers
Upvotes: 2