I have a Pandas DataFrame that contains 'Report Date' in datetime format. The df contains a single record. I want to get just the string value. This is what I am using:
report_date = df['Report Date'].dt.strftime('%Y-%m-%d')
report_date
which produces this output:
0 2021-06-30
Name: Report Date, dtype: object
How do I get to a variable that is just the string "2021-06-30" ?