My timestamp microservice!

Hello Guys!
This is my timestamp microservice for backend/api certification.

https://replit.com/@jmpevzla/boilerplate-project-timestamp
https://github.com/jmpevzla/FCC-timestamp-service

My question is how check better if a date is invalid.
And any feedback is welcome.

Greetings