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 / Today() function when ...
Power Apps
Answered

Today() function when the Browser has been open over 24 hours

(0) ShareShare
ReportReport
Posted on by 61

So I had an interesting one that I figured I'd touch base and see what the community thinks. I have a Screen that has 2 date pickers on it. When the button is selected to go to that screen one thing it does is reset the date picker to the default date using Reset(). And the default has the function Today() in it. That all works perfectly well and as expected.
However, I had a user that evidently left their browser open over the weekend and continued to use the PowerApp each does. The day he opened the PowerApp was June 10th. And when he was using it on the 11th and 12th, the Reset() function was resetting it back to the default of Today() but it would seem Today() kept thinking it was the 10th even though he was using it on the 11th and 12th.
Is the Today() function looking at something about when the session was started and doesn't actually look at Today?

Categories:
  • Verified answer
    charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    I think that the control had cached it's default value, so Today() was not even triggered.

  • Jsunnb Profile Picture
    61 on at

    OH interesting. So if I set the default to a variable and then update the variable to Today maybe that would resolve the issue?

  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    I believe so!

  • Jsunnb Profile Picture
    61 on at

    Great! Thanks for the help

  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    My pleasure. Thanks @Jsunnb .

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard