Power Automate: Convert a dd/MM/yyyy String to a Date (Tested)

A client’s London office sends us a CSV every Monday, and the order dates look like 25/12/2026. Our flow has to write them into a SharePoint date column, so the first job is to Power Automate convert dd/mm/yyyy string to date.

The obvious move, formatDateTime(), reads text as US month/day. It fails on 25/12 and, worse, quietly turns 10/11/2026 into October 11 instead of November 10.

Quick answer: parse the text with the UK locale, then format it the way SharePoint likes: formatDateTime(parseDateTime('25/12/2026','en-GB'),'yyyy-MM-dd') returns 2026-12-25.

In this tutorial, I’ll show how I handle the Power Automate convert dd/mm/yyyy string to date job on real projects: the parseDateTime() fix, a split() fallback, single digits, times, and every error I reproduced.

Why Doesn’t formatDateTime() Work on dd/MM/yyyy Text?

formatDateTime() parses its input with the default en-us locale. So it reads the first number as the month.

formatDateTime('10/11/2026','yyyy-MM-dd')
formatDateTime('25/12/2026','yyyy-MM-dd')

The first line succeeded and returned 2026-10-11. That’s October 11, not November 10. No error, no warning.

Power Automate code view formatDateTime on a dd/MM/yyyy string 10/11/2026
formatDateTime() treats 10/11/2026 as month/day
Power Automate run output 2026-10-11 showing the day and month swapped
The run succeeded with the wrong month, which is the dangerous part

The second line failed, because there’s no month 25:

In function 'formatDateTime', the value provided for date time string '25/12/2026' was not valid. The datetime string must match ISO 8601 format.

So days 1-12 give silent swaps, and days 13-31 give errors. I’ve seen that mix pass testing in early December and break on the 13th. My dd/MM/yyyy format guide covers the opposite direction.

How Do I Convert dd/MM/yyyy Text with parseDateTime()?

parseDateTime() takes the text, an optional locale, and an optional format. It returns an ISO 8601 timestamp.

parseDateTime('25/12/2026','en-GB')

That returned 2026-12-25T00:00:00.0000000. To get a plain date for SharePoint, wrap it in formatDateTime():

formatDateTime(parseDateTime('25/12/2026','en-GB'),'yyyy-MM-dd')
Power Automate code view formatDateTime wrapped around parseDateTime with en-GB
Parse with the UK locale first, then format

Output: 2026-12-25. The tricky 10/11/2026 came back as 2026-11-10, which is correct. If you want US display text instead, use the format MM/dd/yyyy; that returned 12/25/2026.

For more on the formatting half, see my formatDateTime() guide.

Can I Give parseDateTime() an Exact Format?

Yes. Pass the pattern as the third argument when you know the layout for sure:

parseDateTime('25/12/2026','en-US','dd/MM/yyyy')
parseDateTime('25-12-2026','en-US','dd-MM-yyyy')
parseDateTime('25/12/2026 14:30','en-GB','dd/MM/yyyy HH:mm')

These returned 2026-12-25T00:00:00.0000000, the same for the dashed text, and 2026-12-25T14:30:00.0000000 with the time kept.

I use the exact format when the source system is strict, like an ERP export. It documents the expected layout right in the expression.

What About Single-Digit Days Like 5/3/2026?

Hand-typed spreadsheets often drop the leading zeros. An exact dd/MM/yyyy pattern rejects that:

parseDateTime('5/3/2026','en-US','dd/MM/yyyy')
Power Automate InvalidTemplate error from parseDateTime with single-digit day
dd and MM demand two digits each
In function 'parseDateTime', the value provided for date time string '5/3/2026' was not valid. The datetime string must match ISO 8601 format.

Two fixes worked. Use the single-letter pattern d/M/yyyy, or skip the format and use only 'en-GB'. Both returned 2026-03-05T00:00:00.0000000, which is March 5.

My pick: locale only, with no format. It accepts 05/03/2026 and 5/3/2026 alike.

Is There a Way Without parseDateTime()?

Older flows often rebuild the date with split(). It still works, and it’s handy when you want to see each part:

concat(split('25/12/2026','/')[2],'-',split('25/12/2026','/')[1],'-',split('25/12/2026','/')[0])

Output: 2026-12-25. The catch is that it never checks the date. Text like 31/02/2026 becomes 2026-02-31, and whatever reads that value next has to deal with an impossible date. I explain split() arrays in creating an array from a string.

Real Scenario: Convert a List of UK Dates at Once

Back to the London CSV. I tested three strings in one Select action with two output columns:

Select
  From: createArray('05/01/2026','25/12/2026','10/11/2026')
  IsoDate: formatDateTime(parseDateTime(item(),'en-GB'),'yyyy-MM-dd')
  USDate:  formatDateTime(parseDateTime(item(),'en-GB'),'MM/dd/yyyy')
Power Automate Select raw output converting dd/MM/yyyy strings to ISO and US dates
Each UK string converted to an ISO date and a US date

All three converted correctly: 05/01/2026 became January 5, and 10/11/2026 became November 10. In a real CSV flow, point From at your parsed rows; the Select action guide shows the mapping.

Real Scenario: Use a UK Date in a SharePoint Filter Query

A user typed a cutoff date, 01/11/2026, into a form. I converted it inside the Get items filter:

DueDate ge '@{formatDateTime(parseDateTime('01/11/2026','en-GB'),'yyyy-MM-dd')}'

Get items returned IDs 7, 8, 9, 10, and 11, every request due on or after November 1, 2026. The Get items filter query guide covers the quoting rules.

Common Errors and How to Fix Them

InputWhat happenedFix
formatDateTime(’10/11/2026′)Returned 2026-10-11 (wrong month)parseDateTime(text,’en-GB’)
formatDateTime(’25/12/2026′)Not valid ISO 8601parseDateTime(text,’en-GB’)
‘5/3/2026’ with ‘dd/MM/yyyy’Not validUse ‘d/M/yyyy’ or locale only
parseDateTime(’31/02/2026′,’en-GB’)Not valid (no Feb 31)Fix the source data or catch the error
parseDateTime(”,’en-GB’)Not validCheck with a blank condition first

For blank cells, wrap the call: if(empty(text),null,formatDateTime(parseDateTime(text,'en-GB'),'yyyy-MM-dd')). A null clears a SharePoint date column instead of failing the run.

Frequently Asked Questions

How do I convert a dd/MM/yyyy string to a date in Power Automate?

Use parseDateTime(text,'en-GB'). Wrap it in formatDateTime(...,'yyyy-MM-dd') when you need a plain date for SharePoint.

Why does formatDateTime swap my day and month?

It reads text with the en-us locale, so 10/11/2026 is read as October 11. Parse UK text with parseDateTime and the en-GB locale instead.

What does parseDateTime return?

An ISO 8601 timestamp such as 2026-12-25T00:00:00.0000000. See the Microsoft expression functions reference for the parameters.

Does parseDateTime handle single-digit days?

Yes with the locale alone or the d/M/yyyy pattern. An exact dd/MM/yyyy pattern rejects 5/3/2026.

Can I convert dd/MM/yyyy without parseDateTime?

Yes, with split() and concat() to rebuild yyyy-MM-dd. It doesn’t validate the date, so impossible dates slip through.

More Date Tutorials

Once the text is a real date, these are the next steps people usually need: