web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to format a Date a...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    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')

    1.PNG

    Please feel free post back if you need more help.

     

    Best regards,

    Mabel

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    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')

     

  • Ry009_ Profile Picture
    109 on at

    I've tried 

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

    But can't get it working, any ideas?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard