We use Kixtart 4.11 as part of out login script, one of the functions is to check the virus definitions dates to see of they are over 30 days old.

If they are it sends a mail to the helpdesk.

What I need is a way to find the number of days between two dates.

During my search I found this snippet,

$difference=JulianDate(@date)-JulianDate($defdate)

but there is not this feature in 4.11 , or at least not that I can find.

So whats the easiest way to find the number of days between 2 given dates ?

Def Date : 2003/02/05
Client Date : 2003/02/12

[Confused]