Make dateToTime stricter