I use jQuery datetimepicker which was extended from jQuery datepicker to pick not only date but time too.
I want to set date/time format this way: dd-mm-yyyy @ hh:mm
$('#timePicker').datetimepicker({
dateFormat: 'dd:mm:yyyy',
separator: ' @ ',
minDate: new Date()
});
But this does not work. I get date/time in following format:
Thu Jan 27 2011 02:05:17 GMT+0100
Is there any javascript function to format this date/time? If not how do I do that using the plugin?