Excercise tracker project - not clearing the 4th test

Tell us what’s happening:
In my project, when I create a new exercise I get the same response and test shown. but I am not passing the test.
I am not sure that I am filtering the new exercise correctly. Please help me with that.
Your project link(s)
https://github.com/YagneshP/excercise_tracker
solution: https://gentle-plains-95388.herokuapp.com

Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

Hello there,

This is a common issue. Your return:

"date":"Fri Jan 1 2021"

vs the example return

"date":"Fri Jan 01 2021"

Most do not use packages to accomplish this:

date: date ? moment(date) : moment(),

The JS Date API is more than enough. Hint: look into the .toDateString() method

Hope this helps

1 Like

Ya! it works. Thank you for the help!:pray:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.