moment format time from 24hr to 12 hour code example Example: convert 24 hour to 12 hour moment js moment("15", "hh").format('LT')