cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DavJaq
Level 8

How to format a Date and Time value to use it in a 'Create CSV table' with custom columns?

How is formatting a Date and Time value in a 'Create CSV table' data operation done? 

 

I need to format date time field from the 'Get items' in order to use it in the 'Create CSV table' with custom columns. 

 

When I try to do a Compose - data operations  action or Convert time zone action to format the date time field it puts it in an 'apply to each' but the output from the Compose or Convert time zone doesn't become available to use in the 'Create CSV table' with custom columns.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: How to format a Date and Time value to use it in a 'Create CSV table' with custom columns?

Hi @DavJaq,

 

Please just try to enter the function in the formula bar under Expression tab.

Please check the following flow configuration for a reference.

The code used to format the date column is:

formatDateTime(item()?['Date'],'yyyy-MM-dd')

1.PNG

Please feel free post back if you need more help.

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
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

DavJaq
Level 8

Re: How to format a Date and Time value to use it in a 'Create CSV table' with custom columns?

 

Thanks for the clue, this is the format I ended up needing to use:

 

convertTimeZone(item()?['DateTime'], 'UTC','Pacific Standard Time','MM/dd/yyyy HH:mm')

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: How to format a Date and Time value to use it in a 'Create CSV table' with custom columns?

Hi @DavJaq,

 

Please just try to enter the function in the formula bar under Expression tab.

Please check the following flow configuration for a reference.

The code used to format the date column is:

formatDateTime(item()?['Date'],'yyyy-MM-dd')

1.PNG

Please feel free post back if you need more help.

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
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

DavJaq
Level 8

Re: How to format a Date and Time value to use it in a 'Create CSV table' with custom columns?

 

Thanks for the clue, this is the format I ended up needing to use:

 

convertTimeZone(item()?['DateTime'], 'UTC','Pacific Standard Time','MM/dd/yyyy HH:mm')

 

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 311 members 1,796 guests
Please welcome our newest community members: