[TYPO3-mvc] How to create an edit form with a DateTime property?

Sebastian KurfŸürst sebastian at typo3.org
Sat Jul 25 09:47:46 CEST 2009


Hi Xavier,

I think this is still a bug.

Could you please open an issue on 
http://forge.typo3.org/projects/typo3v4-mvc/issues ?

> <label for="releaseDate">Released</label>
> <f:form.textbox property="releaseDate" />
You'd need to format the DateTime object somehow, thus you'd need to 
call <f:format.date>.

However, I'd additionally like to introduce a <f:form.date> ViewHelper 
which does the conversion automatically, and writes the data back to a 
format the argument mapping can understand.

The temporary workaround is to write a "getTimeString()" and 
"setTimeString()" method in your model where you convert the string to 
DateTime and vice versa.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list