> Turn it into a date, datetime or time object first, then format it. > Like the traceback says, strings don't have strftime > attributes/methods.
But it already is a datetime object. The "object" I stated is an object of a model class, which contains a datetimefield. Am I clear now? The code runs smoothly in Python prompt but not in views. Pedro -- Pedro Furtado Juiz de Fora - MG