web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculate Date of Birt...
Power Apps
Answered

Calculate Date of Birth from ID number column in a SharePoint List

(0) ShareShare
ReportReport
Posted on by 21

Hi there, 

 

I was wondering if it would be possible to calculate Date of Birth from an ID number column in a SharePoint List?

 

The ID number column has the first 6 digits as the person's date of birth i.e. if the ID number is "920320 0003 084", the date of birth would be 20/03/1992 or 20 March, 1992. 

 

 

Kind regards, 

Laela. 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Insert a textbox and put this formula:
    Text(Left(Textbox1.Text,6),"dd-mmm-yyyy")

    Where Textbox1 is where the ID column is entered
  • Laela Profile Picture
    21 on at

    Hi @eka24 ,

     

    Thank you for your reply. 

     

    I added the formula to the date field that I had for Date of Birth and this is what it gave me:

     

    Screenshot 2020-03-04 at 09.19.25.png

     

    This is the formula I had for the Date of Birth text input: 

    Text(Left(DataCardValue41_1.Text,6),"[$-en-GB]dd-mmm-yyyy") where "DataCardValue41_1" was the RSA ID Number text input. 

     

    It doesn't seem to be displaying correctly - please let me know how I can fix this?

    I am using a date field for date of birth because I need to use it to calculate age in another SharePoint calculated column. 

     

    Kind regards, 

    Laela.  

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Laela ,

    Do you want to get the birth date from entering number?

    Could you tell me where do you get the year 1992 in your example? from "92"?

    If so, do you mean that you set the year as "19xx" by default?

    If so, I suggest you set the DatePicker's DefaultDate:

    Text(Concatenate("19",Left(TextInput4.Text,6)),"[$-en-US]yyyy/mm/dd")

    On your side, you may need this:

     

    Text(Concatenate("19",Left(DataCardValue41_1.Text,6)),"[$-en-US]yyyy/mm/dd")

    //then you will get the birth date in the format of the datepicker's default format.

    Since you want this format: "dd/mm/yyyy", so please set the datepicker's Format:

    "dd/mm/yyyy"

    3400.PNG

     

    Then you will get the birth date in the format as you want.

     

     

     

    Best regards,

  • Laela Profile Picture
    21 on at

    Hi @v-yutliu-msft,

     

    Thank you so much, I entered this formula and it works perfectly!

     

    Text(Concatenate("19",Left(DataCardValue41_1.Text,6)),"[$-en-US]yyyy/mm/dd")

     

     

    This is my result:

    Screenshot 2020-03-04 at 11.15.15.png

     

    Thank you so much for your help!

     

    Kind regards, 

    Laela. 

  • Horlickdebo5350 Profile Picture
    2 on at

    14531219

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard