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

How to Format the Date Time for Custom Field in MS Flow

Hi Guys,

 

Im new to the flow. I would like to know how to format the DateTime of custom value (from Dynamics CRM) dynamically.

Current: 2018-05-29T16:33:16Z 

Expected: 2018/05/29- yyyy/MM/dd

 

Refered some blogs, It was mentioned "formatDateTime(utcNow(),'yyyy/MM/dd');". This is working fine but, In my case I want to format the CreatedOn date And I'm expecting something like this formatDateTime(CreatedOn,'yyyy/MM/dd'); but CreatedOn is not listing in the Dynamics Content (snap below)

 

Please help me out If we have some other way to achieve this 

 

FlowDate1.png

 

FlowDate2.png

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @Praveenpk365 

Please  try using the expression: 

formatDateTime(items('Apply_to_each')?['createdon'],'yyyy/MM/dd')

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hi @Praveenpk365 

Please  try using the expression: 

formatDateTime(items('Apply_to_each')?['createdon'],'yyyy/MM/dd')

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,067)