Answers for "remove hyphons from date pandas"

1

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
Posted by: Guest on April-09-2021

Code answers related to "remove hyphons from date pandas"

Python Answers by Framework

Browse Popular Code Answers by Language