Removed extraneous debug output.
Don't save invalid dates to database.