Advertisement
182days

Day From Date

May 10th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. #Generates the day of the week from a given date.
  2.  
  3. import datetime
  4. user = input("What date would you like to check...")
  5. print ("That date was a:", datetime.date.today().strftime("%A"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement