@@ -0,0 +1,836 @@
+package ca.antonious.habittracker;%0A%0Aimport android.app.DatePickerDialog;%0Aimport android.app.Dialog;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.DialogFragment;%0Aimport android.widget.DatePicker;%0A%0Aimport java.util.Calendar;%0A%0A/**%0A * Created by George on 2016-09-03.%0A */%0Apublic class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener %7B%0A    @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState) %7B%0A        final Calendar c = Calendar.getInstance();%0A        int year = c.get(Calendar.YEAR);%0A        int month = c.get(Calendar.MONTH);%0A        int day = c.get(Calendar.DAY_OF_MONTH);%0A%0A        return new DatePickerDialog(getActivity(), this, year, month, day);%0A    %7D%0A%0A    @Override%0A    public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) %7B%0A%0A    %7D%0A%7D%0A

Add date picker fragment