set dateformatter style to medium style