moment 24 hrs time format in angular 7 code example Example: convert 24 hour to 12 hour moment js moment("15", "hh").format('LT')