Duplicate :
|
The java.util.Calendar.get (Calendar.MONTH) is used alongwith Calendar.get (Calendar.YEAR) and Calendar.get (Calendar.DATE). While the other two results (Year and Date) are directly usable, since JANUARY to DECEMBER are enumerated from 0 to 11, an incrementation of get (MONTH) output is needed. This can be fixed without much of difficulty as it will help the users in ease of use.
|