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 / Help with formatdateti...
Power Automate
Unanswered

Help with formatdatetime(adddays()) function following an email

(0) ShareShare
ReportReport
Posted on by 27

Hello,

 

I am working on creating a flow where, when I receive an email, a calendar event is set up 1 day from the event.

I've tried a few expressions and still get errors.

Any help is appreciated!!

 

what I am currently trying:

formatdaytime(adddays(triggerOutputs()?['body/receivedDateTime'],1,'MM/dd/yyyy'))

Have also tried this without success:

if(empty(triggerOutputs()?['body/receivedDateTime']),null,formatdaytime(adddays(triggerOutputs()?['body/receivedDateTime'],1,'MM/dd/yyyy')))

 

swinnings_1-1668712394921.png

 

Categories:
I have the same question (0)
  • Verified answer
    srApps Profile Picture
    306 on at

    One thing that stands out is the expression you're using. It should be formatDateTime (not daytime). You may also want it to be a full date time value like 2022-11-17T08:00:00. If you don't include the time it will be created with a start time and end times of midnight.

  • swinnings Profile Picture
    27 on at

    Not sure how that happened, but thank you! It seems to be working!

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