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 Platform Community / Forums / Power Apps / Consistency in date fo...
Power Apps
Unanswered

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.

Categories:
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

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard