Custom Date Range vs. Manually Set Range

Hello all,
anyone can explain the difference mentioned in the subject?
Reference here:

Or, rather, someone can help me understand why this does not work:
fig[‘layout’][‘xaxis5’].update(dict(anchor = ‘y5’,
range = [start_date.strftime(’%Y-%m-%d’),end_date.strftime(’%Y-%m-%d’)]))

If the equivanlet works:
fig[‘layout’][‘xaxis5’].update(dict(anchor = ‘y5’,
range = [‘2006-03-02’, ‘2020-03-02’]))

(Background: I’ve a graph with six subcharts. The fifth one is done on a different DF which might be shorter.)
This is a standardization of the X axis. Start_date/End_date are the Inputs from the DateRangePicker. This is also updates the DF for the upper quadrants.)
Many thanks,
Vaclav

If anyone interested, correct syntax is:
fig[‘layout’][‘xaxis5’].update(dict(anchor = ‘y5’,
range = [dt.strptime(start_date, ‘%Y-%m-%d’).strftime(‘%Y-%m-%d’),
dt.strptime(end_date, ‘%Y-%m-%d’).strftime(‘%Y-%m-%d’)]))