Strip Time from Date

 

Removes the time from the date.

var myDate = arguments[0]
return new Date(myDate.getFullYear(), myDate.getMonth(), myDate.getDate());