===Comparing a date custom field to the current date===
<pre>
if((ssConvertDate(form.getStr("cf_Datecf_Individual Review Start Date"),"@dateformat@", "yyyy-mm-dd") > "@date(currentdate)@") ) { result.isPassed=false; result.addMsg('cf_@Individual Review Start Date.id@','Please enter a date less than or equal to today for the date.'); } }</pre>