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 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard