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

DateValue function

(0) ShareShare
ReportReport
Posted on by

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.

 
 
Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard