TimeDiff() can do this easily:
 Code:
If TimeDiff($DateVar,  'now', 'd') > 30
  "File is more than 30 days old!" ?
EndIf
You can use "today" for midnight of the current day instead of "now", which is the current date/time. Depends on your needs. This doesn't take into account the number of days in the month, but between TimeDiff and TimeConvert, it's fairly easy to do.

TimeConvert converts dates to cTime values (number of seconds since a date) while TimeDiff returns the number of (milli)seconds between to timestamps. It can also accept a Format parameter to return the difference in minutes, hours, days, or years (including fractional parts).

Glenn
_________________________
Actually I am a Rocket Scientist! \:D