[TYPO3-mvc] matching($query->like($propertyName, $operand)), date()

Dennis Ahrens dennis.ahrens at googlemail.com
Fri Aug 20 09:51:33 CEST 2010


Hi Philipp,

Philipp wrote:
> Hi,
> 
> matching($query->like($propertyName, $month))
> 
> Wie kann ich hier auf $propertyName die date('m')-Funktion anwenden, um
> beide Werte vergleichen zu können? $month ist z.B. '08', $propertyName ist
> die Eigenschaft 'date' meines Models und gibt im FE z.B. '19.08.2010'
> aus(formatiert).
> 
> Danke
> Philipp

DateTime is stored as unix timestamp - you can eval ranges by using 
greaterThan() and lessThan() - just create DateTime objects that define 
the start and the end and make two constraints combine with logicalAnd().

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list