mike19
mike19

Reputation: 71

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???

Upvotes: 5

Views: 11525

Answers (1)

user613716
user613716

Reputation: 201

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']
});

Upvotes: 20

Related Questions