If Month(Date) in [4,6,9,11]
Then MaxDay = 30
Else
If Month(Date) in [1,3,5,7,8,10,12]
Then MaxDay = 31
Else
If Month(Date) = 2
Then If Year(Date) in [2000,2004,2008,2012]
Then MaxDay = 29
Else MaxDay = 28;
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.