[TYPO3-mvc] Extbase/Fluid with DateTime objects

Joerg Schoppet joerg at schoppet.de
Tue Dec 22 21:48:08 CET 2009


Hi,

I solved it this way:

<f:if condition="{f:format.date(date: object.dateTime, format: 'U')} == 0">
	<f:then>
	</f:then>
	<f:else>
		<f:format.date format="Y-m-d">{object.dateTime}</f:format.date>
	</f:else>
</f:if>


Joerg



Thomas "Thasmo" Deinhamer schrieb:
> How can I check if a DateTime Object has a valid value?


More information about the TYPO3-project-typo3v4mvc mailing list