[TYPO3-mvc] DateTime in Fluid

Pankaj Lele pankaj at lelesys.com
Thu May 19 10:24:06 CEST 2011


Hello Dear List Members,

I have a property of type DateTime in my domain object. I am using 
f:form.text for editing the datetime with editAction. Following code 
works to show the existing date back into the field using the value 
attribute. Is this proper way or is there something like f:form.date 
available which i might not know?

<f:form.textbox property="datetime" 
value="{f:format.date(format:'{settings.dateFormat}', date: 
'{myObj.datetime}')}" />

Thanks in advance!


-- 

With best regards,
Pankaj Lele
---------------------------

CTO & Executive Director
Lelesys Infotech Pvt. Ltd.
Pune/Goa, India

Web: http://www.lelesys.com

[Certified TYPO3 Integrator]


More information about the TYPO3-project-typo3v4mvc mailing list