cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jakubz
Helper II
Helper II

Set exact time in Start time expression

Hello everyone, 

 

Can sombodey please help me with right syntax?

jakubz_0-1631274574034.png

I have a StartDate variable set from a power app but want to set the time to 8:00 o'clock  inside power automate.

With the EndDate exactly the same but the time will be 12:00 o'clock. 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Community Champion
Community Champion

@jakubz  you have to provide both start and end date time in format following format. Also you need to select the timezone.

2021-02-21T08:00:00

You can concat using following expression, you your dynamic content in place of outputs('Compose_10') when you use these expressions.

For start time

concat(formatDateTime( outputs('Compose_10'),'yyyy-MM-dd'),'T08:00:00')

For end time

concat(formatDateTime( outputs('Compose_10'),'yyyy-MM-dd'),'T12:00:00')

annajhaveri_0-1631533666449.png

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
annajhaveri
Community Champion
Community Champion

@jakubz  you have to provide both start and end date time in format following format. Also you need to select the timezone.

2021-02-21T08:00:00

You can concat using following expression, you your dynamic content in place of outputs('Compose_10') when you use these expressions.

For start time

concat(formatDateTime( outputs('Compose_10'),'yyyy-MM-dd'),'T08:00:00')

For end time

concat(formatDateTime( outputs('Compose_10'),'yyyy-MM-dd'),'T12:00:00')

annajhaveri_0-1631533666449.png

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Thank you, its working perfectly! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,933)