Change the datetime format of the calender control to mm/dd/yyy hh:mm
I want to change the datetime format for the datetime picker control from yyyy/mm/dd hh:mm to
mm/dd/yyyy hh:mm
here is what i am doing
script>
$.datetimepicker.setLocale('en-us');
var ct = $$("tbStartTime").attr("id");
ct = '#' + ct;
$(ct).datetimepicker({
dayOfWeekStart: 1,
lang: 'en-us',
formatDate: 'MM.dd.yyyy hh:mm'
});
$(ct).datetimepicker({ value: '', step: 10 });
var ct1 = $$("tbEndTime").attr("id");
ct1 = '#' + ct1;
$(ct1).datetimepicker({
dayOfWeekStart: 1,
lang: 'en-us',
formatDate: 'MM.dd.yyyy hh:mm'
});
$(ct1).datetimepicker({ value: '', step: 10 });
</script>
but its not working, any ideas how to do that.