I am trying to get today\'s Year, Month and Date using following code;
Calendar calendar = Calendar.getInstance(); int thisYear = calendar.get(Calendar.YEAR); L
try this one..
Calendar instance = Calendar.getInstance(); currentMonth = instance.get(Calendar.MONTH); currentYear = instance.get(Calendar.YEAR); int month=currentMonth+1;