Changed the date format that goes into the database