Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

format time in moment

var time = "15:30:00";
var formatted = moment(time, "HH:mm").format("hh:mm A");
console.log(formatted); 
//it will return 03:30 PM
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #format #time #moment
ADD COMMENT
Topic
Name
5+2 =