cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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

Highlighted
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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (6,062)