adjusts the date format in the graph