Altered api to return dates as string