Like Math.floor but for Date objects