cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Format Date Field in Select Action

In Logic Apps I am able to use a function such as formatdatetime in the Enter Value field of a Select Action from a SharePoint Get Items array.

 

In Flow it only returns the function (regardless of quotes - here are the permutations I have tried)

 

"@formatdatetime(item()?['Meeting_x0020_Start'],'d')"

"formatdatetime(item()?['Meeting_x0020_Start'],'d')"

@formatdatetime(item()?['Meeting_x0020_Start'],'d')

formatdatetime(item()?['Meeting_x0020_Start'],'d

 

All return those strings and not the actual value I am looking for - any idea why this works in Logic Apps but not Flow?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Format Date Field in Select Action

Hi @WiggityZwiggity,

 

That is because Microsoft Flow and Azure Logic App are two different products.

If you would like the function to work directly under the InPut Box of the corresponding Actions, then please switch to the following format:

"@{formatdatetime(item()?['Meeting_x0020_Start'],'d')}"

Doing in this way would have Microsoft Flow to translate the function into actual value instead of just the string inputted.

But the result would contain double quotes.

If you woud llike to remove double quotes, then use the function under Compose Action, with the format below:

"@formatdatetime(item()?['Meeting_x0020_Start'],'d')"

Regards,

Michael

Community Support Team _ Michael Shao
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
Community Support Team
Community Support Team

Re: Format Date Field in Select Action

Hi @WiggityZwiggity,

 

That is because Microsoft Flow and Azure Logic App are two different products.

If you would like the function to work directly under the InPut Box of the corresponding Actions, then please switch to the following format:

"@{formatdatetime(item()?['Meeting_x0020_Start'],'d')}"

Doing in this way would have Microsoft Flow to translate the function into actual value instead of just the string inputted.

But the result would contain double quotes.

If you woud llike to remove double quotes, then use the function under Compose Action, with the format below:

"@formatdatetime(item()?['Meeting_x0020_Start'],'d')"

Regards,

Michael

Community Support Team _ Michael Shao
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

Re: Format Date Field in Select Action

Thanks was not aware the differences were that significant

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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 (8,345)