web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Use date from Microsof...
Power Automate
Answered

Use date from Microsoft Forms -14 days

(0) ShareShare
ReportReport
Posted on by 4

Hello all,

 

I would like to create a Flow when submitting a form it sends a message to a shared mailbox and look if the data is in the time range of 14 days. If it is true, it has to send a message to the responder.

 

Sending the message to a shared mailbox is working, but i cant get the 14 days working.

Currently i have:

- If form date is equal or greater then now and 14 days (formatDateTime(addDays(utcNow(),-14),'yyyy-MM-dd'))

- if form date is equal of less then now (formatDateTime(utcNow(),'yyyy-MM-dd'))

 

What i am doing wrong?

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @VentureG 

     

    To compare the date and time type datatype it is advised to use the "ticks()" function So in your condition, in the left input, type ticks() and within the brackets select the item from the dynamic data selector and in the right one just wrap your formatdatetime function in the ticks function (like this-> ticks(formatdatetime(..)))

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • VentureG Profile Picture
    4 on at

    After posting this message i found an other way to solve my own problem.

     

    I created a "add by time" with the current day and + 14 days. The output of that i used to check the form date.

    Capture.PNG

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @VentureG 

     

    Yes! That works too. But wrap them in the ticks() function for the appropriate comparision of the date and time type. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard