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
v-alzhan-msft
Community Support
Community Support

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
LeeHarris
Solution Sage
Solution Sage

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

v-alzhan-msft
Community Support
Community Support

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,260)