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 / DateValue showing the ...
Power Apps
Answered

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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard