Code example for DateFormat

0
		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";
 
		/** Called when the activity is first created. */ 
		@Override 
		public void onCreate(Bundle savedInstanceState)
			{ 
				super.onCreate(savedInstanceState);
				setContentView(R.layout.calendar);
 
				_calendar = Calendar.getInstance(Locale.getDefault());
				month = _calendar.get(Calendar.MONTH) + 1;
				year = _calendar.get(Calendar.YEAR);
				Log.d(tag, "Calendar Instance:= " + "Month: " + month + " " + "Year: " + year);
 
				selectedDayMonthYearButton = (Button) this.findViewById(R.id.selectedDayMonthYear);