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

Philipp flashblabb at gmail.com
Fri Aug 20 10:41:59 CEST 2010


Hi Dennis,

thx for your advice. Sorry for writing my initial question in German.

Kind regards
Philipp

On 20 August 2010 09:51, Dennis Ahrens <dennis.ahrens at googlemail.com> wrote:

> 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
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list