I've been trying to add one day to the following string: '01/05/2020' The code below works, but it outputs with the hour information as well, which is not what I'm looking for. I'm looking for a simple dd/mm/yyyy output. Do you know what I need to change to get to that?
import datetime
import pandas as pd
day = '01/05/2020'
date = pd.to_datetime(day, format='%d/%m/%Y')
print((date + datetime.timedelta(days=1))
Output:
02/05/2020 00:00:00
Desired Output:
02/05/2020
Thanks in advance!