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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Consistency in date format

(0) ShareShare
ReportReport
Posted on by

Hello, I'm facing some issues with consistency in dates format with different users. 

 

The app creates historical records by patching a Dataverse table, recording the date as Text(Now(), "dd/mm/yyyy").

When I retrieve the data, I create a collection in the app and separate the date from the text:

 

ClearCollect(colHistory,ForAll(Split(LookUp(Notes,Regarding=selectedOrder && Title="History").Description,"<br>"), 
{
Result: ThisRecord.Value,
Action:Last(Split(ThisRecord.Value,"-")),
Date: DateValue(Left(ThisRecord.Value, 10)) & " " & TimeValue(Mid(ThisRecord.Value, 10, 7)),
}))

 

It is working for several users, but one of them has the format set to "November 14, 2023". If this user patches the date it is patched as "14/11/2023" as I set it that way. But when I try to transform the date to the user's format I see "February 11, 2023".

 

Does anyone know how I can fix this? It is mandatory for each user to see the date as their browser date format.

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Consistency in date format

    Hi @aorro933 ,

     

    Please use this formula to patch the data:

    DateValue(Left(ThisRecord.Value, 10)) & " " & TimeValue(Mid(ThisRecord.Value, 10, 7),"da")

     

    Best Regards,
    Bof

  • Verified answer
    aorro933 Profile Picture
    on at
    Re: Consistency in date format

    Thanks for your help @v-bofeng-msft . 

     

    I've used a closer formula and it's working:
    DateValue(Left(ThisRecord.Value, 10),"de") & " " & TimeValue(Mid(ThisRecord.Value, 10, 7),"de")

    Regards

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard