Use the date()
method:
datetime.datetime.now().date()
More Related Contents:
- Converting between datetime, Timestamp and datetime64
- Iterating through a range of dates in Python
- How to construct a timedelta object from a simple string
- Combine Date and Time columns using python pandas
- datetime to string with series in pandas
- pandas datetime to unix timestamp seconds
- Convert timedelta to years?
- Check if string has date, any format
- Formatting timedelta objects [duplicate]
- python pandas extract year from datetime: df[‘year’] = df[‘date’].year is not working
- How to convert a python datetime.datetime to excel serial date number
- matplotlib bar chart with dates
- How to add timezone into a naive datetime instance in python [duplicate]
- Parsing datetime in Python..?
- Python Pandas Group by date using datetime data
- Convert numpy.datetime64 to string object in python
- Python datetime.utcnow() returning incorrect datetime
- Removing the timestamp from a datetime in pandas dataframe
- Subtract a year from a datetime column in pandas
- Pythonic difference between two dates in years?
- Pandas: Return Hour from Datetime Column Directly
- Get the Olson TZ name for the local timezone?
- Pandas: How to create a datetime object from Week and Year?
- Plotting dates on the x-axis
- How to convert epoch time with nanoseconds to human-readable?
- Python pandas integer YYYYMMDD to datetime
- What values are valid in Pandas ‘Freq’ tags?
- need to convert UTC (aws ec2) to PST in Python
- Convert dates to pd.to_datetime where month could be either a number or month name
- Pandas: select all dates with specific month and day