When I draw full data, it works fine and displays the date on the x axis:
.
When I zoom in to a specific part to view:

the graph shows only time, not the date, I understand that with a smaller number of points, a different set of dates cannot be displayed, but how to display the date or set the date format, even if the graph is enlarged?
dataToPlot = pd.read_csv(fileName, names=['time','1','2','3','4','plotValue','6','7','8','9','10','11','12','13','14','15','16'],
sep=',', index_col=0, parse_dates=True, dayfirst=True)
dataToPlot.drop(dataToPlot.index[0])
startTime = dataToPlot.head(1).index[0]
endTime = dataToPlot.tail(1).index[0]
ax = pd.rolling_mean(dataToPlot_plot[startTime:endTime][['plotValue']],mar).plot(linestyle='-', linewidth=3, markersize=9, color='#FECB00')
Thanks in advance!