 Function format dates doesn't work any more. Maybe a changed date format in the api.