I found an excellent timing based on jQuery-ui http://trentrichardson.com/examples/timepicker/ , but suddenly realized that I could not change the date format ... I tried something like this:
jQuery('.datetimepicker').datetimepicker({ timeFormat: 'HH:mm' }).formatDate('yy-mm-dd');
Can someone show an example?
You can use the code:
jQuery('.datetimepicker') .datetimepicker({ dateFormat: 'yy-mm-dd', timeFormat: 'HH:mm' });
Try the following:
This will set the date format to "yy-mm-dd"
"yy-mm-dd"
$.datepicker._defaults.dateFormat = "yy-mm-dd";
, , dateFormat API datepicker
dateFormat
,
jQuery('.datetimepicker').datetimepicker({ timeFormat: 'HH:mm', dateFormat: "yy-mm-dd" });
, . , API
$.datepicker.formatTime(format, timeObj, options)
"" url. u
JQuery ('DateTimePicker'). DateTimePicker ({dateFormat: "D MM d, yy"});
and see this for more documentation: http://trentrichardson.com/examples/timepicker/#tp-formatting
Possibly, this is an example of a link. extracting from this example may not be a problem, I think :)
http://jqueryui.com/resources/demos/datepicker/date-formats.html
Just add that none of the above worked for me, but the following:
$(".datetimepicker").DateTimePicker({ dateFormat: 'yyyy-mm-dd' });
Hi
Liam