Your project can handle dates that can be successfully parsed by new Date(date_string) 001

Yo,
I got this error : Your project can handle dates that can be successfully parsed by new Date(date_string)
and i don’t really understand the shit happening …
Maybe someone can help …

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0

Challenge: Timestamp Microservice

Link to the challenge:

Log your route inputs and responses and you’ll see

req.body undefined
req.params {
  "date": "05 October 2011"
}
req.query {}
{ error: 'Invalid Date' }

which is not an invalid date.

Okay thanks for you reply !
Looks like req.query is empty, not saying error … But what it should contain ?

I should define it as a var at the start of the (req, res) function ?
Like
var utc = new Date(req.params.date).toUTCString();
Or an other things ?

Okay i saw its when i test it its said invalid date ! will try to solve so, thx

I think i have it ! But cant display it in UTC because doing the error like saying 1 day before the day inputed …

[SOLVED] Thank’s Bro !

Just all test pass but i cant get my project confirmed solved on freecodecamp, like all test passed but not sending me to the next challenge its strange …