Hi.

I want to determine how long a month is, but when I do this

Code:
strLeft = 8/31/2003
varMonthLength = DateDiff("d", CDate(strLeft), DateAdd("m", 1, CDate(strLeft)))
I get 30 instead of 31, what can cause that to happen?, and how I can get the accurate number?

Thanks in advance.