Use the to_datetime function, specifying a format to match your data.

df['Mycol'] = pd.to_datetime(df['Mycol'], format='%d%b%Y:%H:%M:%S.%f')
Answer from chrisb on Stack Overflow
๐ŸŒ
Pandas
pandas.pydata.org โ€บ docs โ€บ reference โ€บ api โ€บ pandas.to_datetime.html
pandas.to_datetime โ€” pandas 3.0.1 documentation - PyData |
Convert argument to datetime. This function converts a scalar, array-like, Series or DataFrame/dict-like to a pandas datetime object.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-convert-datetime-to-date-in-pandas
How to Convert Datetime to Date in Pandas ? - GeeksforGeeks
July 23, 2025 - In this example, a DataFrame with a 'DateTime' column containing datetime values is created. Using Pandas, the code converts the 'DateTime' column to a new 'Date' column containing only the date part, and the updated DataFrame is displayed.
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ pandas โ€บ pandas convert datetime to date column
Pandas Convert Datetime to Date Column - Spark By {Examples}
November 8, 2024 - You can convert a datetime column to a date without creating a new column by directly overwriting the existing datetime column. For example, the original โ€˜datetime_columnโ€™ is directly overwritten with the date values using df['datetime_column'] ...
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ how-to-convert-datetime-to-date-in-pandas
How to Convert Datetime to Date in Pandas?
August 3, 2023 - Next, we create a sample DataFrame with datetime values in the 'datetime' column. To perform datetime operations, we need to convert the 'datetime' column to the datetime type using the pd.to_datetime() function.
๐ŸŒ
Statology
statology.org โ€บ home โ€บ how to convert datetime to date in pandas
How to Convert Datetime to Date in Pandas
September 1, 2020 - Often you may want to convert a datetime to a date in pandas. Fortunately this is easy to do using the .dt.date function, which takes on the following syntax: df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date ยท For example, suppose we have the following pandas DataFrame:
Find elsewhere
๐ŸŒ
Pandas
pandas.pydata.org โ€บ pandas-docs โ€บ stable โ€บ reference โ€บ api โ€บ pandas.to_datetime.html
pandas.to_datetime โ€” pandas 3.0.1 documentation
Convert argument to datetime. This function converts a scalar, array-like, Series or DataFrame/dict-like to a pandas datetime object.
๐ŸŒ
Favtutor
favtutor.com โ€บ articles โ€บ pandas-datetime-to-date
Convert Datetime to Date Column in Pandas (with code)
January 4, 2024 - Here are some easy methods to convert datetime to date column in Pandas using date method and normalize function.
๐ŸŒ
Data to Fish
datatofish.com โ€บ string-to-datetime-pandas
How to Convert Strings to Datetime in a pandas DataFrame
import pandas as pd data = ... 2 2021-03-15 19:50:40 timestamp object dtype: object ยท Just as before, you can then convert it like this: df['timestamp'] = pd.to_datetime(df['timestamp'], format='%Y-%m-%d %H:%M:%S') print(df.dtypes) ......
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ convert-the-column-type-from-string-to-datetime-format-in-pandas-dataframe
Convert column type from string to datetime format in Pandas dataframe - GeeksforGeeks
Using astype('datetime64[ns]')** successfully converts the Date column to the **datetime64[ns]` format. ... Pandas is an open-source Python Library that is made mainly for working with relational or labelled data both easily and intuitively.
Published ย  December 30, 2020
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-convert-datetime-to-date-in-python
How to convert datetime to date in Python - GeeksforGeeks
July 23, 2025 - The date value and the DateTime value are both displayed in the output using the print command. The DateTime values are first added to a column of a Pandas DataFrame. The DateTime value is then converted to a date value using the dt.date() function.
๐ŸŒ
Delft Stack
delftstack.com โ€บ home โ€บ howto โ€บ python pandas โ€บ how to convert dataframe column to datetime in pandas
How to Convert Pandas Column to Datetime | Delft Stack
February 2, 2024 - Pandas pd.to_datetime() function converts the given argument to datetime. ... The format parameter in the Pandas to_datetime function specifies the pattern of the datetime string.
๐ŸŒ
Seaborn Line Plots
marsja.se โ€บ home โ€บ programming โ€บ python โ€บ pandas convert column to datetime โ€“ object/string, integer, csv & excel
Pandas Convert Column to datetime - object/string, integer, CSV & Excel
November 20, 2023 - We have a DataFrame named df containing ... seamlessly convert these columns to the desired datetime format, we apply the pd.to_datetime() function to the specified columns....
๐ŸŒ
Medium
deallen7.medium.com โ€บ managing-date-datetime-and-timestamp-in-python-pandas-cc9d285302ab
Managing Date, Datetime, and Timestamp in Python/Pandas | by David Allen | Medium
July 26, 2022 - # using timedelta on a datetime from datetime import timedeltatoday = pd.to_datetime('today') last_week = today + timedelta(days=-7)# this will return a timestamp ... Documentation and tutorials on Python, Pandas, Jupyter Notebook, and Data Analysis.
๐ŸŒ
Pandas
pandas.pydata.org โ€บ docs โ€บ reference โ€บ api โ€บ pandas.Series.dt.date.html
pandas.Series.dt.date โ€” pandas 3.0.1 documentation - PyData |
>>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) >>> s = pd.to_datetime(s) >>> s 0 2020-01-01 10:00:00+00:00 1 2020-02-01 11:00:00+00:00 dtype: datetime64[us, UTC] >>> s.dt.date 0 2020-01-01 1 2020-02-01 dtype: object
๐ŸŒ
Saturn Cloud
saturncloud.io โ€บ blog โ€บ converting-a-column-to-date-format-in-pandas-dataframe
Converting a Column to Date Format in Pandas Dataframe | Saturn Cloud Blog
October 27, 2023 - Next, we use the to_datetime() function to convert the โ€œdateโ€ column to date format. The to_datetime() function returns a Pandas datetime object, which we assign back to the โ€œdateโ€ column of the dataframe.