title: Dynamically change min, max date on datetime change event in AngularJs
body: <p>I'm using an existing directive to select start date and end date.</p>
  <p>Requirement:</p>
  <ul>
  <li>End Date always should be equal or greater than Start Date.</li>
  <li>User may select start date as a <code>future day</code> or <code>old day</code>. min date of the End Date time picker should be set disabled based on start date selection.</li>
  </ul>
  <p>Can anyone suggest me, how to set min date for end date dynamically based on start date?</p>
  <p>start Date:</p>
  <pre><code>&lt;input singledatepicker class=&quot;form-control&quot; selected-date=&quot;startDateTime&quot; placeholder=&quot;Date&quot; format=&quot;DD/MM/YYYY&quot; required readonly style=&quot;background:white;&quot; max-date={{pastDate}}&gt;
  </code></pre>
  <p>End Date:</p>
  <pre><code>&lt;input singledatepicker class=&quot;form-control&quot; selected-date=&quot;endDateTime&quot; placeholder=&quot;Date&quot; format=&quot;DD/MM/YYYY&quot; required readonly style=&quot;background:white;&quot; min-date={{IwantToSetThisValue}}&gt;
  </code></pre>