# How to check the age by using birth date in C?

**URL:** <https://forum.kirupa.com/t/how-to-check-the-age-by-using-birth-date-in-c/330116>\
**Category:** programming\
**Created:** [December 3, 2012, 2:04am UTC](https://forum.kirupa.com/t/how-to-check-the-age-by-using-birth-date-in-c/330116 "2012-12-03T02:04:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Su\_Wing\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Su\_Wing\_Lee](https://forum.kirupa.com/u/Su_Wing_Lee)\
**Post date:** [December 3, 2012, 2:04am UTC](https://forum.kirupa.com/t/how-to-check-the-age-by-using-birth-date-in-c/330116/1 "2012-12-03T02:04:45Z")

</div>

I’m new in C, and I would like to check the age of the user by input of birthday such as yymmdd,if more than 18 years old, then will proceed else will terminate the program. But i have try many time, it does not work. Can anyone help? Thanks in advance.
