What I would like to see, is a function somewhat like @YDAYNO, that instead of counting the days from January 1 the same year, counts the days from some fixed date in the past, like e.g. 1900/01/01, or whatever day sufficiently far away in the past.

My problem right now is that I need to compare two dates, and if one date is more than a specific number of days later than the other, I should execute some command. Right now I compare each part of the date, using a lot of if's and then's, but it would have been much easier if I could use a function, call it XYZ, doing something like this:

if XYZ($date1) - XYZ($date2) > "number of days"
"do some stuff"
endif