get pandas dataframe column datetime format

57 Views Asked by At

How can we get the format of datetime column in Pandas dataframe?

# This is how we set!
df["Date"] = df["Date"].strftime("%m-%d-%Y")

Now, how do I get it? as

df['Date'].?????

>>> "%m-%d-%Y"
0

There are 0 best solutions below