Why is Parse Server returning dates in different formats when using REST API/Cloud Code?
See this JSON as returned from the REST API. Parse fields (createdAt) are formatted as plain strings while for my custom field placementDate the Parse Date object structure is returned. Can I prevent this somehow and always return just the ISO string? For Cloud code, I can use string as a field and do the conversion myself, but not for the REST API.
{
"results": [
{
"objectId": "twgUKW5ffD",
"placementDate": {
"__type": "Date",
"iso": "2022-05-13T00:00:00.000Z"
},
"createdAt": "2022-05-13T21:23:53.027Z",
"updatedAt": "2022-05-30T18:16:26.960Z"
}
]
}
I use Parse Server 5.2.1.