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

Notifications

Announcements

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

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    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')

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 211 Most Valuable Professional

#3
trice602 Profile Picture

trice602 198 Super User 2025 Season 2

Last 30 days Overall leaderboard