fixed output of date type