Thingse/app/src/main/java/com/daneshzaki/thingse/DatePickerFragment.java
//create the dialog with the date picker
create the dialog with the date picker
create the dialog with the date picker
@Override
	public Dialog onCreateDialog(Bundle savedInstanceState)
	{
		final Calendar c = Calendar.getInstance();
		int year = c.get(Calendar.YEAR);
		int month = c.get(Calendar.MONTH);
		int day = c.get(Calendar.DAY_OF_MONTH);
		return new DatePickerDialog(getActivity(), this, year, month, day);
	}
@ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { final Calendar c = Calendar . getInstance ( ) ; int year = c . get ( Calendar . YEAR ) ; int month = c . get ( Calendar . MONTH ) ; int day = c . get ( Calendar . DAY_OF_MONTH ) ; return new DatePickerDialog ( getActivity ( ) , this , year , month , day ) ; }
create the dialog with the date picker
create the dialog with the date picker
// Use the current date as the default date in the picker // Create a new instance of DatePickerDialog and return it