RE: MySQLdb and DateTime objects

2002-04-26 Thread Nick Arnett
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Arnett [snip] > What seemed to be the obvious solution was to use > MySQLdb.times.format_TIMESTAMP() or MySQLdb.times.format_DATE()-- but that > doesn't work, it returns an error: > > File "C

MySQLdb and DateTime objects

2002-04-26 Thread Nick Arnett
I'm have a bit of trouble figuring out how to use a date field retrieved from MySQL when updating a record in another table. Rather than a date string, MySQLdb returns a DateTime object. At first, imagining that since it came out of a field, the date object would also then match the field in a s