Magnus Heino wrote: > Why am i not allowed to strftime psycopg results in zpt? If I didn't know the identifiers involved, I'd think that sentence had been partially encrypted :-) How do you mean? As in "python:rec.datefield.strftime('%Y')"? Psycopg likes to return mxDateTimes rather than DateTimes, and that may the problem. Cheers, Evan @ 4-am