title: Min date Max date not working in xamarin android
body: <p>I'm using the xamarin android datepicker dialog fragment. but tried to enable date between today and toady + 3 days. It's not working. It's not even working for min date options only.</p>
  
  <pre><code>public static readonly string TAG = "X:" + typeof (DatePickerFragment).Name.ToUpper();
          Action&lt;DateTime&gt; _dateSelectedHandler = delegate { };
  
          public void OnDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth)
          {
              // Note: monthOfYear is a value between 0 and 11, not 1 and 12!
              DateTime selectedDate = new DateTime(year, monthOfYear +1, dayOfMonth);
              Log.Debug(TAG, selectedDate.ToLongDateString());
              _dateSelectedHandler(selectedDate);
          }
  
          public static DatePickerFragment NewInstance(Action&lt;DateTime&gt; onDateSelected)
          {
              DatePickerFragment frag = new DatePickerFragment();
              frag._dateSelectedHandler = onDateSelected;
              return frag;
          }
  
          public override Dialog OnCreateDialog(Bundle savedInstanceState)
          {
              DateTime currently = DateTime.Now;
              DatePickerDialog dialog = new DatePickerDialog(Activity, this, currently.Year, currently.Month - 1,
                                                             currently.Day);
  
              dialog.DatePicker.MinDate = currently.Millisecond;
              dialog.DatePicker.MinDate = currently.AddDays(3).Millisecond;
  
              return dialog;
          }
  </code></pre>