Changes

Jump to: navigation, search

SmartCheck Validation

87 bytes added, 14:38, 4 August 2017
Comparing two custom date fields with separate custom time fields storing 24 hour time
===Comparing two custom date fields with separate custom time fields storing 24 hour time===
<pre>if(ssConvertDate(form.getStr("cf_Event Start Date"),"@dateformat@", "yyyy-mm-dd")+' '+form.getStr("cf_Event Start Time") >= ssConvertDate(form.getStr("cf_Event End Date"),"@dateformat@", "yyyy-mm-dd")+' '+form.getStr("cf_Event End Time"))
{result.isPassed=false;
result.addMsg('cf_@Event End Time.id@','End Time Date must take place after the Start TimeDate');
}</pre>
 
===Comparing a date custom field to the current date===
0
edits

Navigation menu