Link to home
Start Free TrialLog in
Avatar of HninHnin Wai
HninHnin Wai

asked on

age from the date of birth and the date of today.

Input item
・ Today's date (year, date, date)
・ Birthday (year, date, date)
- Output specification
Described below
Calculate the age from the date of birth and display it.
Also, the following message is displayed from today's date of entry.
Message specification
Birthday 1 day before: tomorrow is the birthday.
Birthday day: This day is the birthday. congratulations.
One day after birthday: Last day was a birthday.
Do not display anything except the above.

The birth date of the person brought up on a leap day is as follows.
When I am a leap year, 2/29 is my birthday
When it is not a leap year, 2/28 is the birthday
Avatar of ste5an
ste5an
Flag of Germany image

What have you programmed so far?
Can you show some sample input for today's date and birthday date? I'm not sure why you would need three parameters. Also, in addition to the potential messages, how should the display of the age appear (e.g. just number of years or number of years, months, and days) ?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.