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 / Can't format datevalue...
Power Apps
Unanswered

Can't format datevalue of now() in powerapps

(0) ShareShare
ReportReport
Posted on by 42

I have this QR code scanner application in PowerApps and what I wanted to do was when the user scans the QR (onScan), the datevalue now will be assigned to a variable. But what happens in the code below, is that the date differs per device. Sometimes it shows two different date format:

mhoreen_0-1689560589942.png

 

This is my code below when assigning when the user scans a QR code but it say its an incompatible type error:

 

Set(
dateNowIn,
//DateValue(Now())
Text( DateValue( Now() ), "mm/dd/yyyy" )
);

 



 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mhoreen ,

     

    The formula has no syntax errors.

    Please share error message.

     

    Best Regards,

    Wearsky

  • mhoreen Profile Picture
    42 on at

    mhoreen_0-1689562726534.png

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mhoreen ,

     

    You assign a value to the same variable elsewhere and have a different data type.

    vxiaochenmsft_0-1689562922135.png

    vxiaochenmsft_1-1689562940110.png

    vxiaochenmsft_2-1689562967291.png

     

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard