changed date format gonig to api