expire date

i need help with building a small script that will not allow the remaining part of a script to be run if it is not between a given date range.
essentially what i am trying to get a script to expire after a certaing date.
thanks for the help
jim

: i need help with building a small script that will not
: allow the remaining part of a script to be run if it
: is not between a given date range.
: essentially what i am trying to get a script to expire
: after a certaing date.
What you want is the “current date” command from the Standard Additions. You can do something like this:

if (current date) > (date "12/31/2000") then
-- do some code that only happens if the script is run after 12/31/2000
end if

Hope that helps,
Jacob