Consider an empty string for date as a missing date and save the default instead.
Merge pull request #997 from jails/feature/database-date-cast

Consider an empty string for date as a missing date and save the default instead.