[TYPO3-mvc] Date examples, can't find any.

Nathan Lenz typo3 at k9tfk.com
Tue Jan 19 17:13:45 CET 2010


Jochen Rau wrote:
> 
> <f:form method="post" controller="Offer" action="update" name="offer"
> object="{offer}">
> [...]
> <f:form.textbox id="startdate" class="datepicker"
> property="dateRange.minimumValue" value="{f:format.date(date:
> '{offer.dateRange.minimumValue}', format: 'd.m.Y')}" size="12" />
> [...]
> </form>
> 
> I use jQuery to show the datepicker:
> 
> $(function() {
>     $.datepicker.setDefaults({
>         regional: 'de',
>         duration: ''
>     });
>     $("#startdate").datepicker({ defaultDate: 'today' });
>     $("#enddate").datepicker({ defaultDate: '+1m -1d' });   
> });
> 
> I include the JavaScript in my controller. But that’s the rest of the
> discussion ...
> 
> Regards
> Jochen

Hi Jochen,
Christine Gerpheide also suggested this, but for some reason it didn't
sink in.

She suggested: <label for="startdate">Launch Date</label><br />
<f:form.textbox property="startdate" value="<f:format.date
format='{settings.dateFormat}'>{campaign.startdate}</f:format.date>"/>

Is there a difference between nesting with <f:format> or {f:format}?

--Nathan


More information about the TYPO3-project-typo3v4mvc mailing list