JSFiddle - React, Tailwind, and code Playground
by Henry
JavaScript
e={"time": "20:32:24"}
// Parse the string, returning the corresponding date object
var timeformat=d3.time.format("%H:%M:%S").parse;
// Format the Date, returning the corresponding string
var hoursandminsformat=d3.time.format("%H:%M");
e.time2=hoursandminsformat(timeformat(e.time));
console.log(e.time2)