How to create new date in Python

1 Answer

0 votes
import datetime
 
dt = datetime.date(2019, 5, 31)     
print(dt.ctime())



'''
run:

Fri May 31 00:00:00 2019

'''

 



answered Jun 5, 2019 by avibootz

Related questions

1 answer 149 views
1 answer 176 views
176 views asked Nov 6, 2020 by avibootz
3 answers 259 views
1 answer 139 views
139 views asked Feb 22, 2023 by avibootz
...