With this Code, I am getting the time as: 14:00
var starttime = ('00' + starttime.getUTCHours()).slice(-2) + ':' + ('00' + starttime.getUTCMinutes()).slice(-2);
var endtime = ('00' + endtime.getUTCHours()).slice(-2) + ':' + ('00' + endtime.getUTCMinutes()).slice(-2);
But I want Time in form of 12 hrs Like: 2:00 PM. What are the possibilities in javascript and jQuery? Help me I am newbie in this field.