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

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
Highlighted
Resident Rockstar
Resident Rockstar

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
Highlighted
Resident Rockstar
Resident Rockstar

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

Highlighted
Frequent Visitor

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..

Highlighted
Resident Rockstar
Resident Rockstar

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

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (10,448)