setStartDate, setEndDate don't work as expected

setStartDate & setEndDate hadn't worked for me.

My solution: Replace "new UTCDate(date)" with "parseDate(date)"