title: How to compare two date values with jQuery
body: <p>I have two String fields which represent Dates in my page and I would like to compare these two fields to know if my first date &lt; second date. How can I do this?</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td align="right"&gt;First Date: &lt;/td&gt;
      &lt;td align="left"&gt; &lt;html:text name="addPublicationForm" styleId="firstDate" property="firstDate" maxlength="10"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td align="right"&gt;Second Date: &lt;/td&gt;
      &lt;td align="left"&gt; &lt;html:text name="addPublicationForm" styleId="secondDate" property="secondDate" maxlength="10"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>