Sure, here is a simple program written in Python that will display the date of your birthday:
from datetime import datetime # Input the date of birth year = int(input("Enter the year of your birth (YYYY): ")) month = int(input("Enter the month of your birth (MM): ")) day = int(input("Enter the day of your birth (DD): ")) # Create a datetime object for the birth date birth_date = datetime(year, month, day) # Display the birth date print("Your birth date is: ", birth_date.strftime("%d %B, %Y"))
You can simply run this program in any Python environment and input your birth date when prompted. The program will then display the date in a formatted way.
Sure, here is a simple program written in Python that will display the date of your birthday:
from datetime import datetime# Input the date of birth
year = int(input("Enter the year of your birth (YYYY): "))
month = int(input("Enter the month of your birth (MM): "))
day = int(input("Enter the day of your birth (DD): "))
# Create a datetime object for the birth date
birth_date = datetime(year, month, day)
# Display the birth date
print("Your birth date is: ", birth_date.strftime("%d %B, %Y"))
You can simply run this program in any Python environment and input your birth date when prompted. The program will then display the date in a formatted way.