Search found 0 matches

by Clansi Deena
Wed Dec 03, 2014 10:12 am
Forum: Moved from Get Satisfaction
Topic: How do you convert 24 hour time to am/pm using javascript?
Replies: 10
Views: 1356

How do you convert 24 hour time to am/pm using javascript?

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"...