开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜