I am trying to format my DateTime string I retrieve from an API from YYYY-MM-DDTHH:MM: SS +08:00 to DD-MM-YY HH: MM
retrieveApiData(res) {
this.time = this.time.items[0].timestamp;
console.log(this.time);
document.getElementById("time").textContent = "Time Taken: " + this.time;
}
My console log result: 2020-06-17T11:20:00+08:00