Does anyone know where can I find how to calculate how many days February has for a given year?
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Recommended Answers
Jump to PostA Calendar object set to the proper year and month and the getActualMaximum method.
See the API doc for Calendar.
Edit:
But, if you want (for whatever reason) to figure it out the "old-fashioned way" then convert the following into a short algorithm.
Feb has 29 …
Jump to PostDon't do peoples (home)work for them.
Edit: It doesn't help them, in the least.
All 5 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
rajatC
-1
Junior Poster
masijade
commented:
Don't do peoples (home)work for them.
-1
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
rajatC
-1
Junior Poster
Ezzaral
commented:
And it wasn't even a useful suggestion
-1
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.