I am getting an array of response from an api. Below is the response array.
[{createdBy:"user1",updatedDttm:
"2022-01-20T07:31:35.544Z"},
createdBy:"user2", updatedDttm:
"2022-02-20T09:31:37.544Z"}]
From the above response I want to split "updatedDttm" (date and time) for each user and save it to the same array as "date", " time" like below.
[{createdBy:"user1",date:
"2022-01-20", time:"07:31:35"},
createdBy:"user2", date:
"2022-02-20", time: "09:31:37"}]
I am using Angular.js.