Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas remove time from date

# If opening_date is currently a timestamp: 2021-01-09 00:00:00
opening_date = pd.to_datetime(opening_date).date()
print(opening_date) 

# Result: 2021-01-09
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #remove #time #date
ADD COMMENT
Topic
Name
4+7 =