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 / Text based date arrivi...
Power Automate
Unanswered

Text based date arriving in 2 formats is breaking a flow... (2022/01/13 & 13-01-2022)

(0) ShareShare
ReportReport
Posted on by 116

Hi, i've inherited a flow that's suddenly started to fail. Some other system is adding text dates to a SP list

 

The_blue_0-1650441137498.png

 

Currently there's a set variable: 

split(items('Problem_Date')?['Effective_x0020_Start_x0020_Date'], '-')
 
Followed by a compose:
formatDateTime(concat(variables('DS')[0], '-', variables('DS')[1], '-', variables('DS')[2]), 'yyyy-MM-dd')
 
This is failing out on the dates with slashes. 
 
How can i get the output of the compose to be correct for both variants? 

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @The_blue ,

     

    1\ Is the first date April 9th or September 4th?

    2\ Do you have dates in other formats?

     

    Best Regards,

    Wearsky

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard