Code example for Formatter

Methods: closeformat

0
	    public void onDateSet(DatePicker view, int year, int month, int day) {
	        // Do something with the date chosen by the user 
	    	deadlineMillis = MainActivity.getMillis(year, month, day);
	    	selectedItem.get_deadline_calendar().setTimeInMillis(deadlineMillis);	
	    	 
	    	Formatter formatter = new Formatter();
			dateTextViewButton.setText(formatter.format("\t %tF \t(Click To Edit)", selectedItem.get_deadline_calendar()).toString());
			formatter.close();
	    } 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java