>From what i can see you are using double quotes in double quotes.

Try this instead with single quotes around the strftime format string.

<input id="proddate" class="calendardatepicker" name="proddate"
value="${prod.proddate.strftime('%d.%m.%Y %H:%M:%S')}" size="10" type="text"
/>

/Martin

2010/1/20 Timuçin Kızılay <[email protected]>

> 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]<turbogears%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>
>
>


-- 
Martin Eliasson
+46 (0) 739 97 87 33
http://asplunden.org
--
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