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

Xavier Perseguers typo3 at perseguers.ch
Sat Jul 25 10:09:04 CEST 2009


Hi Sebastian,

Sebastian KurfŸürst wrote:
> 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.

OK.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list