Introduction
Welcome to Tech Naandi Solutions. In this post, we will discuss How to calculate age from date of birth in Pega. We will provide all real-time scenarios that will help beginners all the time.
How to calculate age from date of birth in Pega
If you are looking for the concept of calculating age from the given date of birth, simply follow the below steps so that you can easily get to know how can we achieve it in simple and easy steps.
Step 1 :
Firstly login into your Pega application and select Case Types option from the left panel in the designer studio as shown in the screen below.
Step 2 :
Now select the Add Case Type option to create a new Case type in your application and Enter case Type Name as you want. In my case, I am entering the case type name as Calculate Age.
Step 3 :
Wait till it will create a case type, once the case type gets created (select add workflow ) and add 1 stage as Calculator and add step as Age Calculator (Collect Information )click on Configure view option as shown in the screen below.
Step 4 :
Once you click on the Configure view you will get a popup screen where you can create required properties as shown in the screen below. In our case, I am creating 2 properties as,
1.DateOfBirth as type Date only and options as required.
2.Age as Type Text and options as Calculated(read-only ), and select Gear Icon as shown in the image below.
Step 5 :
Once you click on Gear Icon, it will open new calculation space as shown in the screen below, now enter the below expression in the Calculation space and click on submit.
@DateTimeDifference(@dateValue(.DateOfBirth),@dateValue(@today()),”Y”)
Step 6 :
Click on save and run the case type or Select Save and Run option as shown in the screen below.
Step 7 :
Now enter Date of birth or select birth date from calender, then Age is calculated and shown automatically as shown in the screen below.
Conclusion
Finally, in this post, we have learned about How to calculate age from date of birth in Pega. I will post more posts related to real-time scenarios in my website. Please feel free to comment below if you have any queries related to PEGA.
Thanks for your support we will provide more tricks & tips for you. If you like our tricks, share these with your friends and join my Telegram Channel for more new tricks & tips.
Also Read Our New Trending Articles >>>>
- How To Configure Authentication Timeout In PEGA
- How To Unblock Yourself On WhatsApp
- Buy Car and Bike Accessories Online At Best Prices
- Men : Must Have Footwear Styles for Everyone
- Essential Home Accessories for a Stylish Home
- Must Have Baby Essentials : A Comprehensive Guide for New Parents
- Buy Kitchen Essentials Online in India {OLD}
- Best Deals on Bathroom Accessories | Tech Naandi Solutions
- Buy T-Shirts For Men At Best Prices Online
- Best Deals on Daily Needs | Tech Naandi Solutions