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 Automate / How to get tomorrow's ...
Power Automate
Unanswered

How to get tomorrow's date at a specific time, based on current date?

(0) ShareShare
ReportReport
Posted on by

Hi, I'm relatively new to using Microsoft Flow.

 

Let's say the current date is 21/09/22.

 

I want to get the date & time for tomorrow at 10am, so it'll look like 22/09/22 10am. It always has to be 10am the next day.

So far, I've got this:

 

Spoiler (Highlight to read)
concat(formatDateTime(addDays(utcnow(),1),'dd-MM-yy'), ' ', '10')
concat(formatDateTime(addDays(utcnow(),1),'dd-MM-yy'), ' ', '10')

 

The result came out like this:

 

2022-09-22 10

 

And it needs to look something like this:

 

Spoiler (Highlight to read)
2022-09-22T10:00:00.5436463Z
2022-09-22T10:00:00.5436463Z

 

 
Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Instead of concatenating there

    Use this

     

    formatDateTime(addDays(utcnow(),1),'dd-MM-yyT10:00:00.5436463Z')

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks, I literally just figured it out last minute too:

     

    Spoiler (Highlight to read)
    concat(formatDateTime(addDays(utcnow(),1),'yyyy-MM-dd'), 'T', '10:00:00.0000000Z')
    concat(formatDateTime(addDays(utcnow(),1),'yyyy-MM-dd'), 'T', '10:00:00.0000000Z')

    Thanks for your help!

     
  • Community Power Platform Member Profile Picture
    on at

    Sorry, one more question, how can I convert it to my local timezone? I've tried this but the result comes out with the incorrect time:

     

    Spoiler (Highlight to read)
    convertTimeZone((formatDateTime(addDays(utcnow(),1),'yyyy-MM-ddT22:00:00.0000000Z')),'UTC','New Zealand Standard Time')
    convertTimeZone((formatDateTime(addDays(utcnow(),1),'yyyy-MM-ddT22:00:00.0000000Z')),'UTC','New Zealand Standard Time')
  • v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Glad to see you solved the issue.

    Please consider marking the correct reply as a solution and it will close the case. Thanks.

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    on at

    My Flow basically updates the Outlook automatic reply with a start and end time.

     

    I'm not sure why, but the start time and end time are correct in Flow, yet they the end time in my Outlook automatic reply is showing 10pm instead of 10am. What am I doing wrong here?

     

    rickycrayon_0-1663730475630.png

     

     

     
  • Sundeep_Malik Profile Picture
    6,484 on at

    @Anonymous 

    Check this previous post.

    https://powerusers.microsoft.com/t5/General-Power-Automate/PM-to-AM-time-conversion-in-Power-Automate/td-p/908944

    Similar to your case.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Thanks, managed to get it working, although the solution is rather weird and doesn't make sense....

     

    Like what the recommendations suggested in that link, I created a Compose:

     

    rickycrayon_0-1663733424352.png

     

    I then converted the timezone and the weird thing here is that I'm using exactly the same source and destination timezone, which to me seems pointless because there's "no conversion" done essentially:

     

    rickycrayon_1-1663733481671.png

     

     

    I then use that output for my end time for my Outlook automatic reply:

     

    rickycrayon_2-1663733520525.png

     

     

     

    And that worked. However, it's pretty much the same result as what I had before, prior to all this timezone conversion stuff. If I take out the timezone conversion, the result is incorrect. If I change the source timezone to UTC+0, the result is also incorrect. So somehow, setting the exact same source timezone fixes the issue, which is weird. Oh well, it works.

     

    I was also going to just change the time from e.g. 10:00 (10am) to 22:00, but I felt that it's a crappy solution.

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard