Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Time Converter (24h to 12h) by suic
function timeConverter(dayTime) {
let [h, m] = dayTime.split(':').map((t: string) => parseInt(t));
return `${h % 12 || 12}:${m<10?'0':''}${m} ${'ap'[Math.floor(h / 12)]}.m.`;
}
Aug. 10, 2020
Comments: