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 not wor...
Power Apps
Answered

Today function not working as expected

(0) ShareShare
ReportReport
Posted on by 13

HI,

 

I have a field in my canvas app with a default value of Text(Today(),DateTimeFormat.ShortDate).

When i save a record it saves it to an Excel spreadsheet.

Today is 08/08/2023 so i would expect the cell in excel to be updated to 08/08/2023, but it shows 07/08/2023 23:00:00.

It completely ignores my date format and also has the previous days date.

i actually want the first day of the month to be stored so tried Date(Year(Today()), Month(Today()),1) but this gives 31/07/2023 23:00:00.

Can anybody help with this?

 

Gareth

Categories:
I have the same question (0)
  • rpersad Profile Picture
    825 on at

    The code does not seem to be the issue.

     

    You can try debugging on the App itself by displaying the default value of the field for your code on  the app after you submit/save the value.

    Text(Today(),DateTimeFormat.ShortDate)

     

    Given that the date error is consistently sending a date value one hour behind the value you should check the values being saved on the app first.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @GarethParry,

     

    The following topic may be of help.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • GarethParry Profile Picture
    13 on at

    Hi,

     

    thanks for the response on this. i think i have managed to resolve. i had to change the  Default parameter on the date part of the the datacard, not the default on the datecard

     

    thanks

     

    Gareth

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard