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 / Date Picker Sends Wron...
Power Apps
Unanswered

Date Picker Sends Wrong Date

(0) ShareShare
ReportReport
Posted on by 5

Hi, 

I am working with powerapps by using excel file that saved on my oneDrive.

I have an issue with dates.

The user selects a date by using the date picker 

the date look ok on the UI but, the excel got the wrong date  ( minus one day ) 

see pictures

 UI.PNGexc.PNG

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at
  • Shay8080 Profile Picture
    5 on at

    Already tried that, not works for me 

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    The post @eka24 referenced is the right solution.  The problem is that Dates always contain a time component.  When the user picks a date using the date picker its defaulting to midnight on that date in the user's current timezone.  But when it saves it to Excel its converting to UTC, which is evidently two hours before your current timezone. So the date becomes yesterday at 10:00 PM UTC instead of today at midnight local time. 

     

    To fix it you need to adjust the time added to the date picker when it stores the value in Excel.

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @Shay8080 ,

    Do you mean that the time in Excel is different from the time loading in PowerApps?  

    The reason why you met this problem is that:

    Excel's default time zone is UTC.

    PowerApps' default time zone is local time zone.

    So when PowerApps load time, it will transfer to local time automatically.

     

    In order to solve the problems mentioned above,I suggest you save local time to Excel and load time in PowerApps as local time too.   //make time zone the same.

    I’ve made a similar test for your reference:

    Step1:Set the Default of the Date DATA CARD (not the Default on the Date picker) to

    DateAdd(ThisItem.Date,TimeZoneOffset(),Minutes)

    Step2:Set the Update of the Date DATA CARD (not the Default Date on the Date picker) to

    DateAdd(DateValue10.SelectedDate,-TimeZoneOffset(),Minutes)

    Step3:Make sure the Date time zone properties of the date picker control is “Local”

     

     

    Best Regards,

  • Shay8080 Profile Picture
    5 on at

    Thanks !!

    This Solution Works Perfect !! 😀

  • eka24 Profile Picture
    20,923 on at
    Mark the answer as a solution
  • Madiko Profile Picture
    37 on at

    it doesn't work for me. Nothing changed when I follow this solution. I still have time stamp in my excel file. Can anyone help? I need to remove timestamp from excel when I submit a form in PowerApps.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    The time stamp in Excel is dependent on the formatting of the Excel column, not the way the time is submitted from Power Apps.  Make sure the Excel cells are formatted as either Short Date or Long Date, not one of the custom date formats.

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