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.
I've tried
Hi @v-yamao-msft,
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')
Hi @Anonymous,
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')
Please feel free post back if you need more help.
Best regards,
Mabel