- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 06:31 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 06:59 AM
this link has solution
Autofill of Age based on Date of Birth
few more link
Calculate Age from DoB in Client Script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 06:59 AM
this link has solution
Autofill of Age based on Date of Birth
few more link
Calculate Age from DoB in Client Script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 07:42 AM
Hi Are,
In order to calculate a accurate birthday to the date, you need to take into account of the current date of the year too. I see the scripts that has been link to only takes into account the year but not whether if the birthdate has occurred yet, if that matters to your app. Here is the programmer in me going wild... this is quite a long script that takes into account the date of birth.
There are definitely other solution to your problem, but this is my first heck at it. Someone might be able to streamline this script better. This script will calculate your age to the date, so if you enter Jan 16, 1994 vs Jan 17, 1994, you will get a different answer.
****************************************************************************