Does anyone know where can I find how to calculate how many days February has for a given year?
Jump to Post
A Calendar object set to the proper year and month and the getActualMaximum method.
See the API doc for Calendar.
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 …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.