I'm working on an Angular webui project. Currently I have to get a value from a data-document.json which is of type date but I need to display it as a string. How would I be able to achieve this?
"FACD_Dispatch_DateTime": "2022-01-19T16:46:03.959",
this is the way that I've been trying:
map(([d]) => {
let myDate: string;
if (d?.value) {
myDate = d.value;
}
but terminal returns the error: Type 'Date' is not assignable to type 'string'