![]() |
How To Calculate Difference In Dates Between Join Date and Current Date
Hi,
I am not sure how I can calculate the difference between current date and join date in a template Something like: <if condition="$post['joindate'] AND $currentdate AND Days($currentdate) - Days($post['joindate']) > 30)"> Do something </if> Anyone? |
I don't think you can do it in the template because the dates are already made to 'look nice'. You can do it in the php code before the dates are reformatted for output though (when it is still in it's unix timecode format).
|
All times are GMT. The time now is 06:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|