Bios Date Greater than 3 years

(imported topic written by SystemAdmin)

Hi,

Need advise if i could check on the Bios Date > than 3 years…

Q: date of Bios = will return me the date of bios, however, how could i add the condition to check greater than 3 years ??

Thank you

(imported comment written by gjeremia91)

(last 2 of ((year of current date) as string) as integer) - ((last 2 of (date of bios)) as integer)

that, for bios newer that 2000, will return the age, in years, of the bios comparing only the year, not the rest of it. You can do a similar thing if you want to incorporate more elements of the date by constructing a date object:

(current date - date ((item 1 of it & " " &month(item 0 of it as integer) as three letters & " " & (((if (it as integer > 90) then (“19” & it) else (“20” & it)) of item 2 of it))) of (first 2 of it, last 2 of first 5 of it, last 2 of it) of date of bios))

I’ve not found this documented, but the minimum string format required for a "date " is “27 Aug 2007” (DD MMM YYYY)

(imported comment written by SystemAdmin)

Ok, will try to use the first relevance… thanks for the help…