cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Tonisv73
Level: Powered On

Change date format in array

Hi

 

I can't figure out how change date format in my array.

I'm collecting rows from excel, filter them and send as new html tabel via email.

 

But the date column from excel is sent in format: 2019-01-05T22:00:00Z

I like to have it in dd-MM-yy format...

 

Is it possible to add @formatdatetime here:

2019-02-27 23_43_23-Edit your flow _ Microsoft Flow.png

?

 

Tonis

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Change date format in array

Hi @Tonisv73 , Thank you for your post.

Please replace your "StartDate" with this:

formatDateTime(item()?['StartDate'], 'dd-MM-yy')

See formatDateTime()

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

3 REPLIES 3
Super User
Super User

Re: Change date format in array

Hi @Tonisv73 , Thank you for your post.

Please replace your "StartDate" with this:

formatDateTime(item()?['StartDate'], 'dd-MM-yy')

See formatDateTime()

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

Tonisv73
Level: Powered On

Re: Change date format in array

Thanks, that worked. 🙂

I tryed it myself but got some formating error and couln't figure out what was wrong there..

Super User
Super User

Re: Change date format in array

No problem @Tonisv73 

I am glad you have it working now at least.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


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 (9,918)