Views: 27.2K
Replies: 1
Archived
|
Change date format with jQuery UI DatePickerI have an inline datepicker using jQuery UI, like so:
<div id="datepicker"></div> // retrieve date var dt = $('#datepicker').val()); Is there no way to specify a format mask when retrieving the date from DatePicker? Thanks. Juan Perez, Jul 19, 2011
|
|
Reply 1Try this code...
// Change the format as required... var dt = $('#datepicker').datepicker({ dateFormat: 'd-MM-yyyy' }); Rajesh Pillai, Jul 23, 2011
|