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 Platform Community / Forums / Power Apps / DateValue showing the ...
Power Apps
Unanswered

DateValue showing the wrong date

(0) ShareShare
ReportReport
Posted on by 126

In my form I have the last medical date and the medical frequency (years)

aah_4-1669282098828.png

 

My issue is that the date value seems to be returning the wrong date.

 

When I click inside the brackets it shows the correct date as seen below.

aah_2-1669281533906.png

 

As soon as I click outside the brackets it shows the wrong date but it does add the correct amount of years, as shown below, and I can't seem to understand why?

aah_3-1669281613869.png

aah_1-1669281237745.png

 

Any help on this would be great.

Categories:
I have the same question (0)
  • NurSabrina24 Profile Picture
    165 on at

    if you remove "dd/mm/yyyy" ? 

    Text(DateAdd(DateValue.... Years))
  • aah Profile Picture
    126 on at

    It still gives me the wrong date outside of the brackets.

    aah_0-1669283570277.png

     

  • NurSabrina24 Profile Picture
    165 on at

    if you include the "dd/mm/yyyy" inside the DateValue instead?

    DateValue(DataCardValue89.Text, "dd/mm/yyyy"),
  • aah Profile Picture
    126 on at

    It's now showing the DateValue as blank?

    aah_0-1669284930493.png

     

  • Verified answer
    aah Profile Picture
    126 on at

    Thought I'd post my solution in here just in case it helps anyone else.

     

    To fix the issue I added "fr" into the DateValue. I'm not 100% sure why it worked but I think it was something to do with the formatting/region of the date.

    aah_2-1669302190357.png

     

  • Mark_Trinity Profile Picture
    18 on at

    @aah , that DateValue language code tip is gold.

    Cheers,

    Mark

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