You can substract one date value from another to get a difference in days.
>But how do I check the difference in the dates?
>
>>Use the gomonth() function, with a difference of 12 month.
>>
>>E.g., gomonth(date(), 12) is one year from now.
>>
>>>I need to check that difference between 2 date is 1 year. For example (for user)
>>>
>>>01/01/1991 12/31/1991 is good
>>>01/01/1992 01/01/1991 is good
>>>12/31/1991 12/31/1992 is good
>>>02/01/1991 02/01/1991 is good
>>>
>>>other dates which are greater than year ( or 1 year plus 1 day) are bad.
>>>
>>>Is there a way of doing this?
>>>
>>>TIA
If it's not broken, fix it until it is.
My Blog