belongs to collection: Python Date and Time Exercises
Day_name Day_number Month_name Year
Given:
given_date = datetime(2020, 2, 25)
Expected output:
Tuesday 25 February 2020
Solution:
from datetime import datetime given_date = datetime(2020, 2, 25) print("Given date is") print(given_date.strftime('%A %d %B %Y'))
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer