On Friday 11 November 2005 12:41, Pedro Furtado wrote: > object.datetimefield.strftime('%d-%m-%Y') [...] > AttributeError: 'str' object has no attribute 'strftime'
Turn it into a date, datetime or time object first, then format it. Like the traceback says, strings don't have strftime attributes/methods. -E