Convert input to Unix Timestamp



What is the suggested best ways to accept a date in a form that will be input into a table as a timestamp? I only care about the year-month-day, not the time.

Thank you,
Harvey
.