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 Apps / Passing date into Flow...
Power Apps
Answered

Passing date into Flow as parameter throwing error for SharePoint date column.

(0) ShareShare
ReportReport
Posted on by 147

Passing date into Flow as parameter throwing error for SharePoint date column.
PowerApp Code -

Text(DataCardValue13.SelectedDate,"[$-en-US]mm/dd/yyyy","en-US")

Error - string 'mm/dd/yyyy/' does not validate against format date,

In flow I've also used formatdatetime.

Code - formatdatetime(triggerBody()['Updatefileproperties_EndDate'],'mm/dd/yyyy')

But same result.

Any thoughts on this..?

Appreciate your reply on this.

Thank you.

ananda

Categories:
I have the same question (0)
  • haroldk Profile Picture
    on at

    SharePoint Dates are usually formatted yyyy-MM-dd

    Need to use uppper case M for month since lower case m is minutes

     

  • Ananda Profile Picture
    147 on at

    Tried

    Text(DataCardValue13.SelectedDate,"[$-en-US]MM/DD/YYYY","en-US"),

    Same error.

    Thanks

  • haroldk Profile Picture
    on at

    try this 

    Text(DataCardValue13.SelectedDate,"[$-en-US]yyyy-MM-dd","en-US"),

    Using all caps is not right and it should be year month day for SharePoint dates

  • Verified answer
    Ananda Profile Picture
    147 on at

    I've tried below code and it worked. It's not the Upper Case vs Lower Case.


    Text(DataCardValue13.SelectedDate, "[$-en-US]yyyy-mm-dd").

    It's quite strange.

    Thank you.

     

  • Community Power Platform Member Profile Picture
    on at

    Yo tengo el mismpo problema y con la solucion que comentas no se ha solucionado

     

    Les comaprto el error que me aparece

     

    JacquelineRiiv_0-1610394149266.png

  • nathanjfield Profile Picture
    3 on at

    This worked for me, and note that my SharePoint time format is UK (dd/mm/yyyy), but once passed from PowerApps > Power Automate > SharePoint List the date was automatically converted from UK to US.

  • jed76 Profile Picture
    on at

    I've tried everything here and I still get the error?

     

    I am not using a date picker, but simply text. When I try something like Text(ThisItem.To,"yyyy/mm/dd") I still get the STRING issue?

     

    ThisItem is the SP List and To is a date text column?

  • Johnolnes Profile Picture
    234 on at

    This worked for me.

    I removed the regional formatting before the "yyyy-mm-dd", and simply had the flow ask in PA for the date.

    Text(DataCardValue4.SelectedDate,"yyyy-mm-dd")

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard