So I'm using
<tr>
<td>storeEval</td>
<td>var d=new Date(); d.getDate()+'-'+((d.getMonth()+1))
+'-'+d.getFullYear();</td>
<td>date2</td>
</tr>
<tr>
<td>storeValue</td>
<td>//span[@id="txtDateEnd"]//input[@id="txtDateEnd_txt"]</td>
<td>Date1</td>
</tr>
<tr>
<td>storeEval</td>
<td>"${Date1}" > "${Date2}"</td>
<td>Test</td>
</tr>
from Selenium IDE: How do I get today's date?
However I want to compare two date one of which is registered directly from a xpath on my page. Fact is Selenium does not recognize these values as date format and simply try to compare the raw number togueter. I have been looking around for the proper syntax to register these value as dates rather then raw number so that when I compare "${Date1}" > "${Date2}" the number are compared as dates rather then as raw numbers.