You can get am the current time or passed date time to AM PM format through following function. http://allinworld99.blogspot.in/2014/... function getval() { var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() if (minutes < 10) minutes = "0"...