Fix date mutation bug.

* Fix bug with "mutateDate" utility function.  Use Date.setTime method
  instead of Date.setMonth/setDate because separately setting these
  can cause the new date to be incorrect if the number of days in the
  new month is different from the old.