Tasks/src/main/java/com/dummies/tasks/fragment/TaskEditFragment.java
@Override
    public void onDateSet(DatePicker view, int year, int monthOfYear,
                          int dayOfMonth) {
        taskDateAndTime.set(Calendar.YEAR, year);
        taskDateAndTime.set(Calendar.MONTH, monthOfYear);
        taskDateAndTime.set(Calendar.DAY_OF_MONTH, dayOfMonth);
        updateDateAndTimeButtons();
    }
/**
     * This is the method that our Date Picker Dialog will call when
     * the user picks a date in the dialog.
     */
This is the method that our Date Picker Dialog will call when
the user picks a date in the dialog.
This is the method that our Date Picker Dialog will call when the user picks a date in the dialog .
@Override
    public void onDateSet(DatePicker view, int year, int monthOfYear,
                          int dayOfMonth) {
        taskDateAndTime.set(Calendar.YEAR, year);
        taskDateAndTime.set(Calendar.MONTH, monthOfYear);
        taskDateAndTime.set(Calendar.DAY_OF_MONTH, dayOfMonth);
        updateDateAndTimeButtons();
    }
@ Override public void onDateSet ( DatePicker view , int year , int monthOfYear , int dayOfMonth ) { taskDateAndTime . set ( Calendar . YEAR , year ) ; taskDateAndTime . set ( Calendar . MONTH , monthOfYear ) ; taskDateAndTime . set ( Calendar . DAY_OF_MONTH , dayOfMonth ) ; updateDateAndTimeButtons ( ) ; }
This is the method that our Date Picker Dialog will call when
 the user picks a date in the dialog.
This is the method that our Date Picker Dialog will call when the user picks a date in the dialog .