title: Date validation in MFC
body: <p>I have two date-time picker controls for FROM and TO date. I want to limit the TO date starting date to the FROM date.</p>
  
  <p>Example: If FROM date is 4/12/2013
  The TO date picker should allow the user to select date only from 4/12/2013 to current date.</p>
  
  <p>The code is as follows in DoDataExchange() method.</p>
  
  <pre><code> DDX_Text(pDX, IDC_DATETIME_FILTER_FROM, m_daysStartDateVal);
   DDV_MinMaxDateTime(pDX, m_daysStartDateVal,&amp;StartDate,&amp;COleDateTime::GetCurrentTime());
   DDX_Text(pDX, IDC_DATETIME_FILTER_TO, m_daysEndDateVal);
   DDV_MinMaxDateTime(pDX,m_daysEndDateVal,&amp;m_daysStartDateVal.GetTickCount(),&amp;COleDateTime::GeCurrentTime());
  </code></pre>
  
  <p>Whenever I change the FROM date it is not reflecting the possible dates in TO date picker.</p>
  
  <p>How can i limit it to the starting date of the FROM date?</p>