Answers for "how to remove time in datetime in python"

0

how to remove time in datetime in python

import datetime
date_and_time = datetime.datetime(2019, 12, 30)
date = date_and_time.date()
print(date)
Posted by: Guest on September-13-2021

Code answers related to "how to remove time in datetime in python"

Python Answers by Framework

Browse Popular Code Answers by Language