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 / Extract the selected day
Power Apps
Unanswered

Extract the selected day

(0) ShareShare
ReportReport
Posted on by 151

Hi Guys!


Guicord101_0-1662994499736.png

In my app users select a date. I would like to make another text field take the selected day.

I tried using the left function but it didn't work.

My code was like this:

Guicord101_1-1662994603604.png

 



Categories:
  • EricBLott Profile Picture
    248 on at

    You can use the Text() function to format the selected date into just the day. Try this

    Text(DataCardValue11,"dd")
  • Guicord101 Profile Picture
    151 on at

    Guicord101_0-1662996747318.png

    It returns me the selected date

  • EricBLott Profile Picture
    248 on at

    There does seem to be some weird behavior going on with the Data Card.

    Make sure you're referencing the value of the control and not the control itself (DatePicker1.SelectedDate instead of DatePicker1).

    You can also try this if nothing else works, this should:

    First(Match(Text(DateValue1.SelectedDate),"^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$").SubMatches).Value

     

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard