I happen to read this datetimepicker addon and found it to be of great use. The issue that I am facing using this tool is that I am unable to get data / time format in UTC or other formats (my intention is to at least get date / time in UTC format:
$('#starttime').datetimepicker({
ampm: true,
showHour: true,
showMinute: true,
showSecond: false,
showMillisec: false,
timeFormat: 'hh:mm TT',
hourGrid: 4,
stepHour: 1,
minDate: minDate,
maxDate: maxDate,
stepMinute: 10
});
The below script prints me data / time in below format:
var startDt = $('#starttime').datetimepicker('getDate');
Tue May 01 2012 00:00:00 GMT+0530 (India Standard Time)
How can I change this format to any other like
DD-MM-YYYY or DD/MM/YYYY or in UTC format?