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 / Issue with regional da...
Power Automate
Suggested Answer

Issue with regional date formats when bringing data from PDF into Excel

(1) ShareShare
ReportReport
Posted on by 8
Hello PAD forum.
 
I am using a PAD flow to download and import PDFs containing tabular data from a government source and transfer it to Excel for cross-referencing. The plan was to use it daily to check for any additions or new entries on the PDF
 
Each entry in the source data has a date-time value formatted British style, i.e. DD/MM/YYYY HH:MM, or 12/11/2024 09:00 for one of yesterday's entries, for example. Each date-time value has two corresponding alphanumeric text values beside it in the table which are also imported.
 
The flow was working well when I wrote it a late last month -- but, unfortunately, ground to a halt this month. It appears that when I attempt to have PAD write these datetime values into Excel, some of the values are entered as text and others as datetime values. This seems to result in the the day part and the month parts being transposed, leaving me with a US-formatted date which is incorrect -- for instance, a 12 November 2024 entry was down as 12/11/2024 12:30 in the source material but comes out as 11/12/2024 12:30 when written to Excel.
 
It seems to be that when faced with an ambiguous date that could be valid in either US or British format, either PAD or Excel is defaulting to the US value and writing text otherwise.
 
I'm a little stuck, because multiple other variables rely on these date values across a wider ongoing project which involves daily flow runs.
 
Is there a way to get all these time-date values to consistently stick in Excel as a text value formatted British-style, as in the source material? Perhaps some way to set the data format for the column in Excel? Or maybe a way to validate and correct dates as they arise?
 
Any and all comments or suggestions would be greatly appreciated.
 
Untitled-1.jpg
Screenshot 2024-1...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at
    Hi there,
     
    Please make sure your system time format reflects correct British format instead of US format.
     
    If it showing in British format, then try to write your datetime value using macro function instead of using write to cell value excel action.
     
    Thanks,
    Deenu
  • Suggested answer
    CU13112238-0 Profile Picture
    8 on at
    An update on this in case anyone finds the same issue and thinks there's a particularly clever way to get around this -- there really doesn't seem to be. I went back to the point of data ingest from PDF and set my flow to convert all the datetimes to the "sortable datetime" format and proceeded to rewrite everything downstream of that, which actually took way less time than scratching my head over this.
     
    The point of the exercise was to combine the date with a reference number for a recurring event (with CONCAT in Excel) so that each recurrance of the event could have its own unique code in my data set and be used to perform checks against new downloads from the dataset. I learned that the next problem along the way is that PAD will read formulas from Excel rather than the formula results. I solved this by having PAD read the values as text and replace the range contents. I'm very proud of this solution.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard