Passed all the tests but didnt passed Your project can handle dates that can be successfully parsed by new Date(date_string)

Stuck in Your project can handle dates that can be successfully parsed by new Date(date_string) can anybody help ?

project link =

githubLink: https://replit.com/@jalajj/boilerplate-project-timestampapi/2015-05-11#
solution: https://replit.com/@jalajj/boilerplate-project-timestamp

browser info

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Challenge: Timestamp Microservice

Link to the challenge:

Add a console.log(req.params.date_string); to the beginning of the date string route and you’ll see the reason you’re failing that test. Not every date string parseable by Date() has a hyphen.

Always log your inputs and outputs as the first step for debugging a misbehaving route.

1 Like

I have done the console.log but my repl is not showing any value can you tell me what is the problem here

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