startOfDay
Description
Returns a date, but strips off the hours, minutes and seconds.
Parameters
Return Type
Date
Examples
Example 1
if(datepicker < startOfDay(currentDate())){
return false;
}
Example 2
date varDate = "2011-08-17";
print("Date is " + startOfDay(varDate));
Print Date is 17/Aug/11