[2.5.1] Comparing dates?

Gilles Ganault nospam at nospam.com
Mon Feb 2 09:29:24 CET 2009


	I have data in an SQL database where one column contains a date
formated as DD/MM/YYYYY.

I need to select all rows where the date is before, say Feb 1st 2009,
ie. 01/02/2009.

Is there a command in Python that does this easily, or should I look
into whatever date() function the SQL database offers?

Thank you.

More information about the Python-list mailing list