Pega Real Time Scenarios PEGA Tutorials

How to calculate age from date of birth in Pega | Pega Tutorials

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.

Pega Real Time Scenarios

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.

How to calculate age from date of birth in Pega

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.

Pega Real Time Scenarios

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.

How to calculate age from date of birth in Pega

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.

How to calculate age from date of birth in Pega

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.

How to calculate age from date of birth in Pega 7 -Pega Real Time Scenarios - Tech Naandi Solutions

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.

Related posts

PEGA Introduction | Six Rā€™s in PEGA | Tutorials

Narendra Anja

How To Download Pega Personal Edition | Download Pega PRPC Software

Narendra Anja

How to Create Operator ID in Pega | Configure an Operator ID in Pega | Pega Tutorials

Narendra Anja

Leave a Comment

error: Sorry Friend , you are not allowed to copy my content. ~ Narendra Anja šŸ„°
Open chat
How can i help you ?