AngularJS podzielone datę i godzinę od odpowiedzi interfejsu API
const response = [{createdBy:"user1",updatedDttm:'2022-01-20T07:31:35.544Z'},
{createdBy:"user2", updatedDttm: '2022-02-20T09:31:37.544Z'}].map(x => ({
createdBy: x.createdBy,
date: new Date(x.updatedDttm).toLocaleDateString(),
time: new Date(x.updatedDttm).toLocaleTimeString(),
}));
console.log(response);
SAMER SAEID