[Solved] JavaScript convert date format [duplicate]


Well for hours and minutes (hh:mm) you can use this:

var start = new Date(this.props.item.start); // this props returns Thu, 16 Feb 2017 08:00:00 GMT
var dateStr = start.getHours() + ':' + start.getMinutes();

1

solved JavaScript convert date format [duplicate]