Abdullah-Basar commited on
Commit
c5b0f62
·
verified ·
1 Parent(s): 0736c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ Calculate your age in years, months, and days!
9
  See your next 5 birthdays and get a detailed textual output in English.
10
  """)
11
 
12
- # Input Section
13
  if st.button("Click to Enter Your Date of Birth"):
14
- dob = st.date_input("Select Your Date of Birth (YYYY-MM-DD):")
15
 
16
  if dob:
17
  # Calculate Age
 
9
  See your next 5 birthdays and get a detailed textual output in English.
10
  """)
11
 
12
+ # Input Section with a minimum date of January 1, 1950
13
  if st.button("Click to Enter Your Date of Birth"):
14
+ dob = st.date_input("Select Your Date of Birth (YYYY-MM-DD):", min_value=datetime(1950, 1, 1))
15
 
16
  if dob:
17
  # Calculate Age