Convert column of date objects in Pandas DataFrame to strings

As of version 17.0, you can format with the dt accessor:

df['DateStr'] = df['DateObj'].dt.strftime('%d%m%Y')

Leave a Comment