resolve x axis date format