[ Main Menu ] [ Extension Tools Menu ] [ Lite Edition Menu ]

<iDATEDIFF> Tag


<iDATEDIFFDATE1="first date"
DATE2="second date"
[RESULT="<DAYS | WEEKS | MONTHS | YEARS>"] (DAYS)
>

UsageThis tag will return the difference in either days, weeks, months or years between two dates based on the RESULT directive. This provides an absolute value of the difference. This tag can be used in a number of situations in which you need to know how many days are between two dates.
NoteThis tag does not work correctly with dates before January 1st, 1970 due to a limitation with the C mktime function.


iDATEDIFF Example
Example Source Code
Top