I use some code like the following:
Code: Alles auswählen
<we:ifField type="date" name="Enddatum" match="$today" operator="less">
But, it doesn't seem to work correctly (or at all).
jftr: I use wE 6.4.1.
Code: Alles auswählen
<we:ifField type="date" name="Enddatum" match="$today" operator="less">
Code: Alles auswählen
<?php $today=time();?>
<we:ifField name="Enddatum" match="$today" operator="less">
Thank you, it worked! I had tried time() too using type="date" though.mokraemer hat geschrieben:tryCode: Alles auswählen
<?php $today=time();?> <we:ifField name="Enddatum" match="$today" operator="less">
Yeap, ofc. That was my first attempt.e_herrmann hat geschrieben:hi,
did you try with type=date?
<we:field type="date"/> returns a date-time. So, this won't be equal too.mokraemer hat geschrieben:Currently dates are represented as UNIX-Timestamps, so they're not very likely equal.
If you want equality, you have to use type="date" and compare this to a formated date, as it is returned by we:field type="date"
Maybe we should make this here more userfriendly.
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste