changed date format so that it can be sorted