fixed bug in CalendarUtil.trimDate(date): by forgetting that objects are
passed by reference, trimDate really was trimming the time information
from date, which was not intended -- now returns a new date with the
same day, month, year as date, set to midnight.