2 test not passing for my exercise tracker project

Tell us what’s happening:
I believe i am done with the functionalities as described but my app is still not passing 2 tests which are :

  • I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.

-I can retrieve part of the log of any user by also passing along optional parameters of from & to or limit. (Date format yyyy-mm-dd, limit = int)

this is the glitch uri to my app

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.

Challenge: undefined

Link to the challenge:

In case you stumble on this. The test wasn’t because i was using toUTCstring on my date instead of toDateString. If you will ask me it shouldn’t have matter but i guess that’s part of free code camp test.

A post was split to a new topic: Exercise tracker project - Tests not passing