Python Pandas: string to datetime

Viewed 8539

I have a Pandas dataframe with a datetime column in string format. The format is like this:

06 Feb 2014 12:09:42:000

I need to convert this to datetime. Right now I have:

df['date'] = pd.to_datetime(df['STARTDATE'],format='')

My issue is, I do not know what to put in the format argument to parse the string correctly. Can this be done, or is there a better function to use?

1 Answers
Related