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 / Date Format in PDF Dat...
Power Automate
Answered

Date Format in PDF Data Extraction to Excel

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have created a flow wherein I have to extract data from a pdf invoice into excel. 

In the pdf document the date field is  in dd-mm-yyyy but in the excel it gets converted to mm-dd-yyyy format.

 

Example- date in pdf is 11-03-2022 (excel value 44631) while in excel it gets converted to 03-11-2022 (excel value 44868)

 

Kindly provide any solution to above.

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @digvijaykatiyar,

    Here is two directions for your reference.

    1). You could directly format it within your Excel file, select the whole column and right click to select the number format. Choose your format in the dropdown list:

    vqiaqimsft_0-1652236160180.png

     

    2). You could loop through the Date column and format it as below:

    AddDays('1899-12-30',int(items('Apply_to_each')['Date']),'dd-MM-yyyy')

     

  • Sanj22 Profile Picture
    10 on at

    Hi @v-qiaqi-msft,

    I have the same issue and it is not resolved by changing the format as per your first solution. 

    With regards to your second solution, where would I enter the code you have provided (sorry I am new to Power Automate!)

     

    Many thanks

     

    Sanj

     

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard