Skip to content
In Python - Taking Date Of Birth as input and finding out the user's age in Years, Months and Days
Profile icon
Archanakumar13

In the Python Programming Language, How can I use the input function to take the user's Date of Birth and use that to find the user's age in Years, Months and Days? I will need to import today's date to do that, right? But, how would the code be written if the date of birth has to be input by the user?

Also, how can I change the format of the Date of Birth that the user will input? Is there a way to change the format of the Date of Birth of the user from the default format to a different format?

You are viewing a single comment. View All
Profile icon
Archanakumar13

@wulv
Thank you for the guide. I have made the necessary changes to my post.