I have an incoming json like:
...
"orderId": 34363231,\
"plannedPalletPls": 0,\
"shipmentId": 11737,\
"createdAt": "2022-10-07T13:57:01.13Z",\
"updatedAt": "2022-10-07T13:57:01.13Z",\
...
For every key I need to check if it is a date or not. I use this code:
if (!isNaN(Date.parse(value))) {...}
But, for example, for value 11737 this expression returns true. And it is not what I need. What is a good way to check if the value is real date?