title: How to validate start date and end date in multiple datetime picker in html table?
body: <p>Hi iterating database data with struts iterator with that i have added start date time picker and end date time picker. how many iteration takes place that much date pickers going to added. how to validate start datetime and end datetime 
  Datetime picker fiddle  <a href="https://jsfiddle.net/Eonasdan/0Ltv25o8/" rel="nofollow noreferrer">https://jsfiddle.net/Eonasdan/0Ltv25o8/</a></p>
  
  <pre><code>&lt;s:iterator value="#session.subjectlist" status="resultstatus" var="sub"&gt;
   &lt;td&gt;&lt;s:property value="#resultstatus.count" /&gt;&lt;/td&gt;
   &lt;td&gt;&lt;s:property value="subjectname"/&gt;  &lt;s:hidden name="subjects" value="%{subjectname}" /&gt;&lt;/td&gt;
   &lt;td&gt;
   &lt;div class='input-group date datetimepicker1' data-provide="datepicker1" &gt;
  &lt;s:textfield name="examDate1" cssClass="form-control"readonly="true" id="divId%{#resultstatus.count}"/&gt;
   &lt;/td&gt;
   &lt;td&gt;
      &lt;div class='input-group date datetimepicker2' data-provide="datepicker2"&gt;
      &lt;input type='text' name="examDate2" class="form-control" readonly="readonly" /&gt;
      &lt;span class="input-group-addon"&gt;&lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/s:iterator&gt;
  </code></pre>