How to tell if a given year and month is in the future in Classic ASP?
In Classic ASP, how can I get a true or false value indicating that a given year and mon开发者_StackOverflow社区th is in the future?
you could try this, assuming you don't know the day of month.
dateToTest = CDate(givenYear & "-" & givenMonth & "-" & "01")
inthefuture = dateToTest > now()
精彩评论