I have created a function for user to input his birthdate and display some info like month name from his birth date entered, however with following code I am getting month number but I need month name, can anyone help me out here? Thanks!
import calendar
import datetime
def birth_day():
date = input("Please enter your birthdate in format:'1991,03,15' :")
birthdate = datetime.datetime.strptime(date, '%Y,%m,%d').weekday()
print("You were born on:", calendar.day_name[birthdate])
print("-------------------------")
birth_sign(date)
def birth_sign(date):
monthname = datetime.datetime.strptime(date, '%Y,%m,%d').month
print(monthname)
birth_day()