Formatting the date from json