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 / Unable to process temp...
Power Automate
Answered

Unable to process template language expressions in action 'formatDateTime'

(0) ShareShare
ReportReport
Posted on by 45

Hi there!

I'm building a flow using Excel's "For a selected row" and I'm having trouble setting the formatDateTime in some cases.

 

I'm using the compose action to format the date using this expression formatDateTime(outputs('Obtener_formato_de_fecha_Excel'),'dd/MM/yyyy')

 

But i'm getting this error:

Unable to process template language expressions in action 'Redactar_Formato_de_Fecha' inputs at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string '27/11/1999' was not valid. The datetime string must match ISO 8601 format.'.

 

Here some screen shots from the flow

 

automate1.png

 

 

 

 

 

 

 

 

 

 

The flow continues and the data is stored in a SharePoint list and it should look like this

 

 

automate2.png

 

 

 

Hope the community can help me.

 

Mauricio.

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,479 Super User 2025 Season 2 on at

    Hi,

     

    Unfortunately if your Date is formatted like that it won't work. 

    You would need to reverse the dates yourself. If its only a format of mm/dd/yyyy (ignoring case on purpose) then you can do the following

     

    In my example you can see I have a variable with the Date like yours.

    I use a Compose to flip it 

     

    // Replace variables('MyDate') with your data
    concat(
    split(variables('MyDate'),'/')[1], '/',
    split(variables('MyDate'),'/')[0], '/',
    split(variables('MyDate'),'/')[2]
    )

     

    FLMike_0-1696345710209.png

    Please note, I don't know if yours has hours etc, if so we will need to tweek it some and  you should always verify you even have a date too.

     

    If this meets your needs please Mark this response as Resolved.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • maurics Profile Picture
    45 on at

    Hi @FLMike !

     

    Thanks you very much for the suggestion! The problem was solved!

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard