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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,078)