Comment définir le format DateTime dans Python
import datetime
x = datetime.datetime(2018, 9, 15)
print(x.strftime("%b %d %Y %H:%M:%S"))
Xenophobic Xenomorph
import datetime
x = datetime.datetime(2018, 9, 15)
print(x.strftime("%b %d %Y %H:%M:%S"))
df['date_column'] = pd.to_datetime(df['date_column'],format='%Y%m%d')