title: Set Minimum date for DatePickerDialog getting IllegalArgumentException Fromdate does not precede toDate
body: <p>I'm not sure what I am doing wrong? What is fromdate and what is todate? here is my code...</p>
  
  <p>The max date works perfectly, so I'm really confused. It seems to me the new Date().getTime should return the right value or is it something else?</p>
  
  <pre><code>    meetingDateButton.setOnClickListener(new OnClickListener() {
  
                      @Override
                      public void onClick(View v) {
                          DatePickerDialog dpd = new DatePickerDialog(MapActivity.this, new DatePickerDialog.OnDateSetListener() {
  
                              @Override
                              public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
                                  SimpleDateFormat simpledateformat = new SimpleDateFormat("EEEE");
                                  Date date = new Date(year, monthOfYear, dayOfMonth - 1);
                                  String dayOfWeek = simpledateformat.format(date);
                                  meetingSelectDate.setText(dayOfWeek + " " + (monthOfYear + 1) + "/" + dayOfMonth + "/" + year);
                              }
  
                          }, mYear, mMonth, mDay);
                          dpd.setTitle("Select Date:");
                          Date maxDate = new Date();
                          maxDate.setTime(new Date().getTime()+(86400000*7));
                          dpd.getDatePicker().setMaxDate(maxDate.getTime());
                          dpd.getDatePicker().setMinDate(new Date().getTime());
                          dpd.show();
                      }
                  });
  </code></pre>