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 Apps
Answered

DateValue function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi team, I would like to ask about a function call "DataValue" from Excel in PowerApps, my objective is build a numerical ID with this.
I tried with "Value" function.

 
 
Capture2.PNG
Capture.PNG
Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Firstly, let me explain the principle of the DataValue function in Excel.

    The DATEVALUE function converts a date that is stored as text to a serial number that Excel recognizes as a date. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.

    Secondly, in PowerApps we usually use the Value function to convert characters to numbers. In theory, it has no ability to deal with date characters.

    Finally, I have an alternative for your reference:

    Considering the characteristics of DataValue function in excel, I suggest you try this function in power apps:

    DateDiff(Date(1900,1,1),Today(),Days)+1

    I think this link will help you a lot:

    DATEVALUE function:

    https://support.office.com/en-us/article/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252

    DateAdd, DateDiff, and TimeZoneOffset functions in Power Apps:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff

    Best Regards,

    Bof

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard