Dear all campers,
I stuck with the test
date property of any object in the
log array that is returned from
GET /api/users/:id/logs should be a string… Use the
dateString format of the
Date API." and cannot pass it.
I used mongoose API to store date data in ‘String’ format with .toDateString() function.
On my browser, everything works fine and output is the same as the project requires.
I didn’t know the reason why this was not work.
Please help me on this issue
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Challenge: Exercise Tracker
Link to the challenge: