-1

I am using jQuery datepicker. I have bound a Textbox with Datepicker. I want to change the date format so that it displays dates like Tuesday, 29 - Jan - 2013. How can I do that ?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

3 Answers3

0

I think it was already posted here:

Try out this one:

jQuery UI DatePicker - Change Date Format

Community
  • 1
  • 1
nsutgio
  • 240
  • 2
  • 6
  • 15
0

Try this,

$( ".selector" ).datepicker({ dateFormat: 'DD, d-M-yy' });

http://jqueryui.com/resources/demos/datepicker/date-formats.html

Nandu
  • 3,076
  • 8
  • 34
  • 51
0

You have to use the date format options to format date [link]

$(document).ready(function () {  

               var pickerOpts = {
                dateFormat:"DD ,d - M  yy"
               };  
              $("#fromDate").datepicker(pickerOpts);     

            });

Demo

muthu
  • 5,381
  • 2
  • 33
  • 41