no matter what you do you will need to use one of the date math UDF's.
here is something that i have in my date math udf folder...
Code:
Function EpocDate($date)
DIM $y,$m,$d
$date = Split($date,"/")
If UBound($date) <> 2 Exit 1 EndIf
$y=Val($date[0]) $m=Val($date[1]) $d=Val($date[2])
If $m<3
$m=$m+12
$y=$y-1
EndIf
$Epocdate=$d+(153*$m-457)/5+365*$y+$y/4-$y/100+$y/400-306
EndFunction
it just turns the date into a number of days that have passes since 1/1/1
some code using the above UDF as an example.
Code:
$file = Dir('.\*.*')
While not @ERROR
;check to see if we are working witha file.
If not (GetFileAttr($file) & 16)
;return the file age in days vs todays date
$fileage = epocdate(@DATE) - epocdate(Split(GetFileTime($FILE))[0])
? 'the File ' + $file + ' is ' + $fileage + ' days old ' GetFileTime($file)
EndIf
$file = Dir()
Loop
I dont know if it can get any simpler....