Currently, I am utilizing
<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>
Referenced from Selenium IDE: How do I get today's date?
Nevertheless, my objective is to compare two dates, one fetched directly from an xpath on my webpage. Selenium fails to recognize these values as dates and instead attempts to compare them as raw numbers. I have been searching for the correct syntax to register these values as dates rather than plain numbers so that when comparing "${Date1}" > "${Date2}", the numbers are evaluated as dates rather than raw integers.