📜  pandas 从 datetime 中删除时间 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.369000             🧑  作者: Mango

代码示例2
# 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