Hi all,
I am just writing some code to find the number of days in any month..
for
testing, i have this code:
This code Runs perfect for every Month EXCEPT for April, where it gives 29 days instead of 30 ??? any clue why??
i was just testing by
commenting
and including
where monthNum varies from 0 to 11. It is giving trouble only with
cal.set(2005,3,1);
what has APRIL month done wrong???
Your help would be appreciated..
Another question, which is not regarding the previous one..
Calendar.DATE does not give 22, but gives 5, why??
I have other ways of getting today's date, but just curious to know what's wrong with Calendar.DATE??
Thanks again ;-)