23 Apr
2004
23 Apr
'04
1:58 a.m.
On Thursday 22 April 2004 04:39 pm, Jason C. Leach wrote:
Zope:
I get a date from a MySQL DB in the format M/DD/YYYY HH:MM:SS AM (or PM). I need to check this date agains the current date. Can I request the Date in this specific format from Zope PythonScript?
Yes, just call DateTime(date) or context.ZopeTime(date) where date is the string containing the date in the MySQL format. That will give you a Zope DateTime object for comparison. Alec Mitchell