Showing posts with label Time. Show all posts
Showing posts with label Time. Show all posts

Python program to find day of birth

import datetime
y = input("Enter year of Birth: ");
m = input("Enter month of Birth: ");
d = input("Enter date of Birth: ");
mydate = datetime.date(int(y),int(m),int(d))
print(mydate.strftime("%A"))

Python program to print date and time

import datetime;
print("Today Date & Time:\n");
print(datetime.datetime.today());