If year 2007 then days in feb is 28
if year is 2008 then days is 29. does anyone know how to calculate the days in a month in a year?
Any help is appreciated.
Thanks,
ruma.
I actually was able to calculate the days. The only issue was to calculate the days in Feb and this is how I was able to calculate it :
If (Remainder(Year(CurrentDate), 4) = 0 and Remainder(Year(CurrentDate), 100) <> 0) or
(Remainder(Year(CurrentDate), 400) = 0)
then 29
else 28
Thanks for all help.