Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple (without extra dependencies) solution in Clear category for [old] Time Converter (12h to 24h) by MaxGraey
const timeConverter = str => {
let [h, m] = str.split(':')
h %= 12
if (m.includes('p')) h = h + 12
return `${('00' + h).slice(-2)}:${('00' + parseInt(m)).slice(-2)}`
}
May 16, 2019
Comments: