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 change the date...
Power Automate
Answered

How to change the date format of the csv file?

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I've created a flow in order to convert an xls into a csv.

However the date format is either a serial number or a ISO 8601 format.

How can I change into MM/DD/YYYY format?

 

antoniogaliero_0-1635258921005.png

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    Set the output from Excel to be ISO 8601.  Then use a Data Select action to select the columns you want to be in the array used to create the CSV.  In the Data Select you can format the date column using the FormatDateTime() function to output it the way you want it in the CSV.  Then use the results from the data select to create the csv.  The Data Select also lets you pick which columns you want included.

  • antoniogaliero Profile Picture
    10 on at

    I guess I'm making some mistakes. It returns an error.

    antoniogaliero_0-1635262751042.png

     

  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    You need to use a Data Select action to apply the formatting.  You don't do it directly in the CSV.  Something more like this.

    image.png

     

  • antoniogaliero Profile Picture
    10 on at

    Hi,

    what shall I write in the field: formatDateTime('???','MM/dd/yyyy') ?

  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    Item('FieldName') - just replace Field name with whatever the column name is.  If in doubt insert it first without the formatDateTime using the dynamic content dialog.  Then hover over it to get the JSON representation.

  • antoniogaliero Profile Picture
    10 on at

    As Item('FieldName'), do you mean the field where is written "Enter key" or the "Enter value"?

    I don't understand what shall in those fields.

     

    Thanks!

     

    antoniogaliero_1-1635409893625.png

     

     

  • Verified answer
    Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    As it shows in my screenshot the formula with the field goes in the Enter value column.  The Enter Key column is used for a text value that is a label for the column name.

  • Loevefisk Profile Picture
    6 on at

    Hello,

    I have the same problem, and have treid different tings the last 3 days, but i can't figure it out. I'm Stuck!

    I tried your version and also this give me an error. 

    Every thing I have tried failed, only one fomat diden't fail. But the flow did convert it but the result in my CSV file didn't. 

     

    My flow take the information from an attached PDF file and put it in a Excel Workbook, In the Workbook I translate the information to another sheet. The "New Sheet "ScanX PDF." Then I take the "ScanX PDF" Sheet and convert it to a semicolon CSV file. The only thing I need to finish is to get the Date correctly. I need it to say dd-MM-yyyy HH:mm, but I really need som help to get to the finish line. 

     

    A nich finish will be to name the CSV fil as referanceNo insted of the Attached file, but I can't get it to work. 

     

    My flow:

    Loevefisk_8-1701367740752.png

    Loevefisk_9-1701367768249.pngLoevefisk_10-1701367815555.pngLoevefisk_11-1701367841802.pngLoevefisk_12-1701367857911.pngLoevefisk_13-1701367877599.pngLoevefisk_14-1701367898480.png

    Loevefisk_17-1701368032056.pngLoevefisk_18-1701368049498.png

     

     

     

     

     

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard