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 137 views
1 answer 161 views
161 views asked Nov 6, 2020 by avibootz
3 answers 250 views
1 answer 125 views
125 views asked Feb 22, 2023 by avibootz
...