Hi Hi i am using an date picker on selecting a date the date is displayed in this format month/date/year .... How to convert the date to this format year-month-date in date picker js itself
+1
A:
This will apply the date format to all datepickers that are created after:
$.datepicker.setDefaults({
dateFormat: 'dd.mm.yy'
});
Or to apply to a specific datepicker:
$('#selector').datepicker({
dateFormat: 'dd.mm.yy'
});
Tatu Ulmanen
2010-06-01 08:14:20
+1
A:
Hi,
Date.firstDayOfWeek = 0;
Date.format = 'yyyy-mm-dd';
$(function()
{
$('.date-pick').datePicker()
});
VAC-Prabhu
2010-06-01 08:28:40