Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Question about Template Conditionals and XThreads
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Question about Template Conditionals and XThreads
I don't know what is the value of the $datenow variable.

You can use Unix timestamps format to compare them.
You can convert your date into Unix timestamps by using strtotime().

Something like this:

Code:
<if time() > strtotime({VALUE}) then>This offer has already started<else><span class="xdate">Start the day: {VALUE}</span></if>


Sorry for late reply.


07-03-2019 10:52 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Question about Template Conditionals and XThreads - RateU - 07-03-2019 10:52 PM

 Standard Tools
Forum Jump: