changed date format to suit server