Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Datepicker Days

I have include a jqueryUI Datepicker, I need to change the 2 letters days into 1 letter, example. instead of "Su" for Sunday, it will become "S" for sunday and the rest.... How will I change it???

like image 647
mike19 Avatar asked Nov 30 '22 21:11

mike19


1 Answers

I was just wondering this same thing. After looking through the api I found out you can pass an option into the datepicker to change the day names. Here is the api section: http://api.jqueryui.com/datepicker/#option-dayNamesMin

Here is an example:

$("#datepicker").datepicker({
    dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S']
});
like image 183
user613716 Avatar answered Dec 05 '22 17:12

user613716