Trying to get date format in to bar chart