how to remove time in datetime in python

Solutions on MaxInterview for how to remove time in datetime in python by the best coders in the world

showing results for - "how to remove time in datetime in python"
Alexander
04 Feb 2018
1import datetime
2date_and_time = datetime.datetime(2019, 12, 30)
3date = date_and_time.date()
4print(date)