Determining date range with JS
It has been a while, so this is a noobie question...
I have two variables
dateToday and dateExpire
And, I need to determine if dateExpire is within a range (say 5-7 days) after dateToday.
My problem is the code to determine the "If dateExpire is 5-7 days after dateToday" part. I know this is easy, but I'm stuck. Uggggh.
I need to do the work in an "if" statement and return a "true" value if the criteria fit. This "true" will kick off a function to send the email.
Any ideas??
|