This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am not getting the correct year with gc.YEAR. How to i get the year?
Quite frankly,. I am surprised that MONTH worked !!
MONTH and YEAR are not the month and year. These are constant values which are used by the setter and getters to determine what you want. Basically, when you pass MONTH to the getter, it will return the month, and when you pass YEAR to the getter, it will return the year.