[TYPO3-mvc] DateTime: Should I give up?

Jochen Rau jochen.rau at typoplanet.de
Mon Feb 15 10:10:12 CET 2010


Hi Joerg.

On 14.02.10 22:20, Joerg Schoppet wrote:
> I tried now several ways to update a DateTime-Field in a backend-module
> with extbase, but I don't get it.
>
> I have a property "birthday" within my model.
>
> I first tried it directly within a form, but well -> nogo
> Then I created two additional methods "setBirthdaystring" and
> "getBirthdaystring", which receives/send strings -> nogo

Why nogo?

> Then I changed the original getter/setter-methods to receive/send
> strings instead of datetime -> nogo

Why nogo?

> The only I haven't tried is the jquery-way jochen suggested, but I don't
> want to include an additional javascript-library.

You don't need JavaScript for this. As long as we don't have the 
Converters (the companion of Validators) of FLOW3 we have to implement 
these in our domain model Extbase.

I have implemented a method normalizeValue() in my recent project. It 
resides in the RangeConstraint and the DateRange of

http://forge.typo3.org/repositories/show/extension-sjr_offers

Regards
Jochen

> A little bit frustrated,

Hey, come on. Bear up! (or Beer up?) ;-)


More information about the TYPO3-project-typo3v4mvc mailing list