开发者

DateDiff giving me the wrong answer

开发者 https://www.devze.com 2023-03-15 19:40 出处:网络
The function for getting the difference in days between two days is giving me a wrong answer here...What could i be doing wrong???

The function for getting the difference in days between two days is giving me a wrong answer here...What could i be doing wrong???

    DateDiff(DateInterval开发者_Python百科.Day, CDate("28/1/2011"), CDate("31/1/2011"))


For me, it returns 3.

Which is the correct answer according to the documentation on DateDiff.

What were you expecting??

0

精彩评论

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

关注公众号