Working with dates and times - How to save dates to PostgreSQL