开发者

How to tell if a given year and month is in the future in Classic ASP?

开发者 https://www.devze.com 2023-02-19 10:11 出处:网络
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.

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()
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号