Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to conver time format to 12 hours in javascript

var hours = dt.getHours()
minute = dt.getMinutes();
hours = (hours % 12) || 12;
console.log("Time is - " + hours + ":" + minure;
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #conver #time #format #hours #javascript
ADD COMMENT
Topic
Name
5+4 =