I want to compare two dates in a condition with fluid in an extension in Typo3 6.2. Here is, what I have tried for now:
<f:if condition="{f:format.date(format : 'U', date : {orderdate})}
>= {f:format.date(format : 'U', date : {v:system.dateTime()})}">
<f:then>
do it
</f:then>
<f:else>
do it not
</f:else>
</f:if>
The viewhelper {v:system.dateTime()} from the vhs-extension returns the timestamp. But this code returns only the condition from the "then" statement. The condition is not working in this way...
My question is, how can I compare two dates within fluid? Does anybody know a solution?
ordinate
? 2) what is the type (and value) ofv:system.dateTime()
, 3) what do you expect from the condition? 4) creating custom VH is easy task if you'll answer first 3 points I'll try to help you, but pls, describe it with samples – biesior