Hi,
i define this:
And then i need to compare a date called "draw" in the table Users like this:
When draw is older or equal than today, do this
When draw is earlier than today, do that.
The output of both variables works fine, but when i use logic, this doesnt works:
It doesnt works, when i use "$today",
it doesnt works, when i change the ">" and "<"...
What i am doing wrong???
And: Are there other possibilities to compare a date with today-date?
Thanks in advance!
Coyu
i define this:
<%set today = GT::Date::date_transform($date, '%dd%.%mm%.%yyyy%', '%yyyy%-%mm%-%dd%')%>
And then i need to compare a date called "draw" in the table Users like this:
When draw is older or equal than today, do this
When draw is earlier than today, do that.
The output of both variables works fine, but when i use logic, this doesnt works:
<%if draw <= today%>do this
<%elseif draw > today%>do that
<%endif%>
It doesnt works, when i use "$today",
it doesnt works, when i change the ">" and "<"...
What i am doing wrong???
And: Are there other possibilities to compare a date with today-date?
Thanks in advance!
Coyu