Timestamp microservice

I have been trying to write code for this project for the entire last week - I am stuck - I don’t understand how we are supposed to get a user’s input - create an input type date or just a link like in the example? if we create an input form for the date - how do I transfer that value to node.js ? if it’s just a link - I can create a variable in index.js file but then again, how can it be invalid or empty?

my index.html is:

Click on the date

some date

my index.js is

app.get(‘/api/:date?’, (req, res) =>{
let s = “12-10-1986”
let unix = new Date(s).getTime();
let utc = new Date(s).toUTCString();

res.json({unix: parseInt(unix), utc: utc});
});

my output is:
{“unix”:534556800000,“utc”:“Wed, 10 Dec 1986 00:00:00 GMT”}

However it passes only the first test

There already is a form for the project. There is no need to create one. Do you have a link to your full project code?

hi, here’s the link to my project:
https://boilerplate-project-timestamp-1.alexeylozin.repl.co

You have a CORS issue. The freeCodeCamp site is unable to reach your app end points.

When you submit your url, you can open the browser console to see all the errors.

Also, I asked you to post a link to your project code. You posted a link to your live app.

oh, maybe this link will work:

https://replit.com/@AlexeyLozin/boilerplate-project-timestamp-1#index.js