Javascript formatting time hours minutes | Javascript | Formatting | Timing | Wikitechy.com
In JavaScript the Hours and minutes are obtained by using getHours() and getMinutes() methods of the date object.The hour’s values will be varied from 0 to 23.In JavaScript there are two problems that occur while returning the data value
1.The time in hour or minutes are return in single digits which indicates that the JavaScript does not add any leading zeroes which is nothing but the prefix value. Hence, 05:03 (AM) is printed as 5:3.
2.The time 12:00 AM is printed as 0:00.
For more details visit: http://goo.gl/iTKP1Z
Follow us on:
Facebook: https://www.facebook.com/wikitechy
Twitter: https://www.linkedin.com/company/wikitechy
Google Plus: https://plus.google.com/u/0/113860990046915520924
Linked in :https://www.linkedin.com/company/wikitechy
Pinterest: https://www.pinterest.com/wikitechy/
Tumblr: http://wikitechy.tumblr.com/
Stumbleupon: http://www.stumbleupon.com/stumbler/wikitechy
Flipboard: https://flipboard.com/@Wikitechy