Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Help Needed with Birthday Calculator Implementation

kemiy

Bronze Coder
Hi everyone,

I’m trying to create a birthday calculator that can take a user’s birthdate and calculate their exact age in years, months, and days. I also want it to handle leap years correctly and optionally tell the day of the week they were born.

I’m running into issues with accurately computing months and days when the current day is earlier than the birth day in a month. Has anyone implemented something similar in Python or JavaScript?

What’s the best approach to ensure accuracy, especially with leap years and different month lengths?
 
Hi everyone,

I’m trying to create a birthday calculator that can take a user’s birthdate and calculate their exact age in years, months, and days. I also want it to handle leap years correctly and optionally tell the day of the week they were born.

I’m running into issues with accurately computing months and days when the current day is earlier than the birth day in a month. Has anyone on Birthday Hub implemented something similar in Python or JavaScript?

What’s the best approach to ensure accuracy, especially with leap years and different month lengths?
thanks in advance for any help
 
Back
Top Bottom