Code example for DateFormat

0
	private Calendar _calendar;
	@SuppressLint("NewApi") 
	private int month, year;
	@SuppressWarnings("unused") 
	@SuppressLint({ "NewApi", "NewApi", "NewApi", "NewApi" }) 
	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.my_calendar_view);
 
		_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