'How to create an endpoint that receives a "timestamp"

I need help to create an endpoint that receives a "timestamp" (complete date with time) and save it to the database.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source