just date serial function
this shows 07/31/08 how come july has 31 days. what is the error in below one.
LastDay = Day(DateSerial(intOriginYear, intOriginMonth + 1, 0))
Msgbox LastDay
sorry i missed another line
LastDay = Day(DateSerial(intOriginYear, intOriginMonth + 1, 0))
Date = intOriginMonth & "/" & LastDay & "/0" & intOriginYear
Msgbox Date
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.