How to check the date validity?

Chris Angelico rosuav at gmail.com
Wed Dec 25 17:03:31 EST 2013


On Thu, Dec 26, 2013 at 6:03 AM, Sibylle Koczian <nulla.epistola at web.de> wrote:
> MySQL used to accept wrong date and datetime formats without error messages.
> Garbage in the database, because validation was (is?) considered the job of
> "the application". Possibly that has changed, but I'd look into the docs. It
> isn't PostgreSQL.

Nor is it DB2, which is where I grew up, databases-wise. Yes, check
what MySQL will do. I'd forgotten that, or more likely suppressed it
from my mind.

ChrisA



More information about the Python-list mailing list