@@ -0,0 +1,1797 @@
+%0Apackage org.missionassetfund.apps.android.fragments;%0A%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0A%0Aimport android.app.Activity;%0Aimport android.app.DatePickerDialog;%0Aimport android.app.Dialog;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.DialogFragment;%0Aimport android.widget.DatePicker;%0A%0Apublic class DatePickerFragment extends DialogFragment%0A        implements DatePickerDialog.OnDateSetListener %7B%0A%0A    private DatePickerDialogListener listener;%0A%0A    public interface DatePickerDialogListener %7B%0A        void onDateSelected(Date date);%0A    %7D%0A%0A    @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState) %7B%0A        // Use the current date as the default date in the picker%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        // Create a new instance of DatePickerDialog and return it%0A        return new DatePickerDialog(getActivity(), this, year, month, day);%0A    %7D%0A%0A    // Store the listener (activity) that will have events fired once the%0A    // fragment is attached%0A    @Override%0A    public void onAttach(Activity activity) %7B%0A        super.onAttach(activity);%0A        if (activity instanceof DatePickerDialogListener) %7B%0A            listener = (DatePickerDialogListener) activity;%0A        %7D else %7B%0A            throw new ClassCastException(activity.toString()%0A                    + %22 must implement DatePickerDialogListener%22);%0A        %7D%0A    %7D%0A%0A    public void onDateSet(DatePicker view, int year, int month, int day) %7B%0A        // Do something with the date chosen by the user%0A        Calendar newDate = Calendar.getInstance();%0A        newDate.set(year, month, day);%0A        listener.onDateSelected(newDate.getTime());%0A    %7D%0A%7D%0A

Add simple DatePickerFragment