Timeseries range using dates

I’m creating timeseries plots from dataframes, and want to set the date range.
I’m using
but would prefer to use a more intuitively date-like entry for my left and right, so it’s easier to change.
Have been unsuccessful so far with datetime.date(), but probably because I’ve formatted it incorrectly.

Probably an obvious answer, I’m still learning …
Any suggestions / direction please and thank you?

Are you creating the plots through matplotlib or pandas?

pd.Timestamp(‘year-month-day’) (https://stacakoverflow.com/questions/27425015/python-pandas-timeseries-plots-how-to-set-xlim-and-xticks-outside-ts-plot)) might work if it’s through pandas.