If those are actually datetimes, then you can call date on them: df['Date'] = df['Date'].dt.date Answer from danielroseman on reddit.com
🌐
Python documentation
docs.python.org › 3 › library › datetime.html
datetime — Basic date and time types
Source code: Lib/datetime.py The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the focus of the implementation is on efficient attr...
🌐
W3Schools
w3schools.com › python › python_datetime.asp
Python Datetime
The datetime() class requires three parameters to create a date: year, month, day.
🌐
Codecademy
codecademy.com › docs › python › dates › datetime.date()
Python | Dates | datetime.date() | Codecademy
April 15, 2025 - The datetime.date() method returns a date object in the year-month-day format.
🌐
Microsoft Learn
learn.microsoft.com › en-us › powerquery-m › datetime-date
DateTime.Date - PowerQuery M | Microsoft Learn
September 16, 2025 - Returns the date component of the dateTime parameter if the parameter is a date, datetime, or datetimezone value, or null if the parameter is null.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.datetime.date
DateTime.Date Property (System) | Microsoft Learn
Gets the date component of this instance. public: property DateTime Date { DateTime get(); };
🌐
Programiz
programiz.com › python-programming › datetime
Python datetime (With Examples)
A date object represents a date (year, month and day). import datetime d = datetime.date(2022, 12, 25) print(d)
🌐
Mimo
mimo.org › glossary › python › datetime
Python datetime Module: Working with Dates, Times, and Formatting
You might not always need a complete datetime object, like when working with calendar dates (birthdays, deadlines, etc.). In such cases, you can use the date class (datetime.date) and handle dates (year, month, day) without concern for time. ... from datetime import date # Get today's date today = date.today() # Create a specific date (year, month, day) my_birthday = date(1995, 5, 16) # Access individual components print("Year:", today.year) print("Month:", today.month) print("Day:", today.day)
Find elsewhere
🌐
MySQL
dev.mysql.com › doc › en › datetime.html
MySQL :: MySQL 8.4 Reference Manual :: 13.2.2 The DATE, DATETIME, and TIMESTAMP Types
MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD hh:mm:ss' format. The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. The TIMESTAMP data type is used for values that contain both date and time parts.
🌐
Reddit
reddit.com › r/learnpython › how to turn a datetime into just a date?
r/learnpython on Reddit: How to turn a datetime into just a date?
November 30, 2023 -

Hello everyone, this is what my date column looks like:

Date
2023-11-30 23:20:12
2023-11-29 20:19:46
2023-11-28 21:33:25
2023-11-27 15:31:32

What I am trying to do it turn the dates in the column into this "2023-11-30" format only. So I am just trying to have the date and the time not be in the column. Can some please show me how to get rid of the time part of in the date column so that I am left with just this format for dates in the date column:

2023-11-30

🌐
Built In
builtin.com › articles › date-python
Python Date vs. Datetime Objects Explained | Built In
In Python, a date object is used to present a calendar date, while a datetime object represents the date down to the microsecond.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.datetime
DateTime Struct (System) | Microsoft Learn
Represents an instant in time, typically expressed as a date and time of day. public value class DateTime : IComparable, IComparable<DateTime>, IConvertible, IEquatable<DateTime>, IFormattable
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › data type conversion
datetime - Arrays that represent points in time - MATLAB
Text representing dates and times, specified as a character array, a cell array of character vectors, or a string array. The datetime function first attempts to match the format of DateStrings to common formats.
🌐
PHP
php.net › manual › en › class.datetime.php
PHP: DateTime - Manual
public static createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false
🌐
Python Module of the Week
pymotw.com › 2 › datetime › index.html
datetime – Date/time value manipulation - Python Module of the Week
As you might expect, the datetime instance has all of the attributes of both a date and a time object. $ python datetime_datetime.py Now : 2013-02-21 06:35:45.658505 Today : 2013-02-21 06:35:45.659381 UTC Now: 2013-02-21 11:35:45.659396 year : 2013 month : 2 day : 21 hour : 6 minute : 35 second : 45 microsecond : 659677
🌐
MetaCPAN
metacpan.org › pod › DateTime
DateTime - A date and time object for Perl - metacpan.org
Try running the test suite for each dependency with this environment variable set before using this in production. Internally, dates are represented the number of days before or after 0001-01-01.
🌐
PyPI
pypi.org › project › DateTime
DateTime · PyPI
Any recognized timezone name specified as the final element of the date/time string will be used for computing the date/time value. (If you create a DateTime with the string, “Mar 9, 1997 1:45pm US/Pacific”, the value will essentially be the same as if you had captured time.time() at the specified date and time on a machine in that timezone).
      » pip install DateTime
    
Published   Nov 25, 2025
Version   6.0
🌐
Educative
educative.io › answers › what-is-the-datetime-datetoday-function-in-python
What is the datetime date.today() function in Python?
Line 4: We used the today() method to get the current local date. The date.today() function returns the date object, which is assigned to the today variable.