Search found 1 match

Go to advanced search

by Clansi Deena
Wed Dec 03, 2014 10:12 am
Forum: Issues
Topic: How do you convert 24 hour time to am/pm using javascript?
Replies: 10
Views: 3209
 
Jump to post

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

Go to advanced search