Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Date and Datetime diff...
Sales forum
Answered

Date and Datetime difference

Posted on by 20

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?

Categories:
  • Sweden1968 Profile Picture
    Sweden1968 20 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/

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,353 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans