Symantec Virus Definition Dates > 2 weeks

(imported topic written by SystemAdmin)

I’m having trouble breaking down the symantec relelvance to give me a yes or no on the age of the definition dates.

This gives me the date of the definition

q: (date (( last 2 of it & " " & first 3 of (month (last 2 of first 6 of it as integer) as string) & " " & first 4 of it) of preceding text of last "." of it)) of  following text of last "\" of (value "NAVCORP_70" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs" of native registry as string)
A: Tue, 11 Oct 2011
T: 0.164 ms

What I need is to ask if that date is greater than two weeks from today.

I can’t seem to get the relevance correct and keep getting errors for a result.

thanks in advance,

Baraq

(imported comment written by NoahSalzman)

Here is how you do the date comparison:

q: “11 Oct 2011 00:00:00 -0000” as time < now - 14*day

A: False

q: “11 Sep 2011 00:00:00 -0000” as time < now - 14*day

A: True

You will, of course, need to get your calculation to spit out something in the “time” format (as above) rather than the “date” format.

(imported comment written by SystemAdmin)

thanks, I think i have what i need now.

-B