Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Date and Datetime difference

Posted on by 24

Hi,

I have a form with a date only field that for some reason shows the date incorrectly when I use it in Power Automate.

For example, I select 03/05/2023 (UK time) and save the record. The front end shows it as 03/05/2023 but when I go to access the date in Power Automate it shows 02/05/2023.

So I added another field that was set to DateAndTime, selected the same date and this shows the date correctly as 03/05/2023. 

This is the trigger output:

Date Only: "new_customerfacetofacemeeting": "2023-05-02"

Date and Time: "new_customerfacetofacemeetingdatetime": "2023-05-03T07:00:00Z"

Both fields are set to user locale and both the user who enters data and the owner of the flow have their time zone set to UK time.

Any idea what's going on?

  • Sweden1968 Profile Picture
    Sweden1968 24 on at
    RE: Date and Datetime difference

    Hi,

    Yes, it seems that it's Power Automate behaviour. I solved it by converting the date to a datetime and converted it from UTC to the correct time zone. I still don't understand the rationale to treating a date only field this way.

  • Verified answer
    Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: Date and Datetime difference

    Hi Sweden1968,

    I think it's still a time zone issue, please refer to the following two articles: 

    https://powerusers.microsoft.com/t5/General-Power-Automate/MS-Flow-pulling-wrong-Date-Time/td-p/781231

    https://www.cloudfronts.com/power-automate/solved-date-field-shows-wrong-date-in-power-automate/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans