0

python

How to write a code to print yr-month-date (Todays date n time) hrs: mts .

10th Feb 2019, 7:50 PM
Geetha k
3 Answers
+ 1
Thanks Peter
10th Feb 2019, 8:01 PM
Geetha k
10th Feb 2019, 8:01 PM
peter
peter - avatar
- 1
import datetime x = datetime.datetime.now() print(x) import datetime x = datetime.datetime.now() print(x.year) print(x.strftime("%A")) see a pattern yet where its all imported from? lol
10th Feb 2019, 7:59 PM
peter
peter - avatar