Javascript how to check if the parameter is a date in object,
I got this object from backend
"data": {
"name": "tony",
"gender": "F",
"city": "taichuang",
"date": "2019-09-28T08:00:00.000Z",
"level": "3",
"date2": "2019-12-04T00:00:00.000Z",
"no": "11232",
"color": "red"
}
I use *ngFor to render this data, but I have to parse date format to yyyy-mm-dd, Every parameter is dynamic, so I don't know which parameter is date, How can I do?
ps.dev with angular9