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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Convert date to serial...
Power Apps
Answered

Convert date to serial value

(0) ShareShare
ReportReport
Posted on by 402

I see many answers to convert a date serial number (like out of excel) to a date, but what if I want to reverse that?  What I am trying to do is create a calculated column with a person's last name and DOB value.  So if I have Allison and 9/6/67, it would be ALLISON24721.

 

Thanks for the information

Categories:
I have the same question (0)
  • Verified answer
    jsaunders_09 Profile Picture
    140 on at

    I think it would be more common to use "yyyymmdd" format but if you want to use serial the below formula will give it to you.

     

    DateDiff(Date(1900,01,01),DOB value + 2)

     

    jsaunders_09_0-1671551289766.png

     

    Side note Serial date is days since 1/1/1900, including 1/1/1900 and the end date, this is what the +2 is for.

     

     

  • iskguy Profile Picture
    402 on at

    Thank you!  And yes, I can also use the yyyymmdd format which is actually what I ended up doing.  But it is also good to know this formula for the serial date 

  • san4mus Profile Picture
    2 on at

    Just to make a correction here, +2 is added not because both 1/1/1900 and the end date are inclusive (in that case 1 should have been added as we are taking difference), +2 is added as MS Excel treats 1900 as leap year which is exception! Check this link - https://learn.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year.
    For example, if you test using leap year formula below, 1900 is NOT a leap year. 
    =IF(OR(MOD(A1,400)=0,AND(MOD(A1,4)=0,MOD(A1,100)<>0)),"Leap Year", "NOT a Leap Year")

    But when you use DATEVALUE function below, it allows 29 days in Feb for the year 1900 and that causes extra 1 day (along with 1 day for 01/01/1900) to be added to make it consistent with MS Excel Serial Date value.

    =DATEVALUE("02/29/1900")

    Hope that helps. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 321 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 289 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2026 Season 1

Last 30 days Overall leaderboard