Code example for Date

Methods: setHours, setMinutes

0
		date.setDate(monthDay);
		updateDate(); 
	} 
 
	public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
		date.setHours(hourOfDay);
		date.setMinutes(minute);
		updateTime(); 
	} 
 
	public void updateDate() { 
		dateButton.setText(dateFormatter.format(date));
	} 
 
	public void updateTime() { 
		if (timeButton != null)
			timeButton.setText(timeFormatter.format(date));
	} 
 
	public void onClick(View v) {
		if (v == timeButton)