Please, can someone tell me if I'm doing anything wrong?

Basically, the code bellow is used in a view and generates the following error:
---
text = "blah blah %s" % (object.datetimefield.strftime('%d-%m-%Y'))
---

AttributeError: 'str' object has no attribute 'strftime'

'str' ? When I go to the prompt the datetimefield is a python datetime type...

--
Pedro Furtado

Reply via email to