Code example for DateFormat

		private ImageView nextMonth;
		private GridView calendarView;
		private GridCellAdapter adapter;
		private Calendar _calendar;
		private int month, year;
		private final DateFormat dateFormatter = new DateFormat();
		private static final String dateTemplate = "MMMM yyyy";
		private Button Setting;
		/** Called when the activity is first created. */ 
		public void onCreate(Bundle savedInstanceState)
				_calendar = Calendar.getInstance(Locale.getDefault());
				month = _calendar.get(Calendar.MONTH) + 1;
				year = _calendar.get(Calendar.YEAR);
Connect your IDE to all the code out there  Get Codota for Java