Hi,
I'm using tg2.1

I'm trying to format datetime values in template but so far I could not do that. I can send another formatted string from controller to template but that seems wrong. is there an easy way to format dates? I'm trying to use date.strftime function but I get errors fro template.

here the peace of code in my template:
--------------
<input id="proddate" class="calendardatepicker" name="proddate" value="${prod.proddate.strftime("%d.%m.%Y %H:%M:%S")}" size="10" type="text" />
--------------


-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to