cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KatrienDeWinter
Frequent Visitor

Format date time + apply to each

Dear

 

Is it possible to format date time (dd-MM-yyyy)) within an apply to each (extracting all events from a calendar in outlook) so I can do some calculations with it?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Format date time + apply to each

Hi @KatrienDeWinter ,

 

What is the time that you want to format? Is it the Start time or the End time?

1.png

 

If you want to formate the Start time, you could take a try with the expression below :

formatDateTime(items('Apply_to_each')?['Start'],'dd-MM-yyyy')

And if you want to formate the End time, you could take a try with the expression below :

formatDateTime(items('Apply_to_each')?['End'],'dd-MM-yyyy')

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Format date time + apply to each

Hi @KatrienDeWinter 

Yes, this is possible.

Use the following expression within your apply to each, either directly in the calculation or within a "Compose" action which will give you an output you can then use.
formatDateTime(AddTheDynamicContentFieldHere'dd-MM-yyyy')
 

Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Community Support
Community Support

Re: Format date time + apply to each

Hi @KatrienDeWinter ,

 

What is the time that you want to format? Is it the Start time or the End time?

1.png

 

If you want to formate the Start time, you could take a try with the expression below :

formatDateTime(items('Apply_to_each')?['Start'],'dd-MM-yyyy')

And if you want to formate the End time, you could take a try with the expression below :

formatDateTime(items('Apply_to_each')?['End'],'dd-MM-yyyy')

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,531)