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 string after t...
Power Apps
Answered

Extract string after the first space but before the second space

(0) ShareShare
ReportReport
Posted on by 224

Two part question:

I have a string in a dropdown to a text field that says something like this:

Wednesday 10/01/2023 Hello

1. I would like to extract the date to a text field so it only says 10/01/2023

2. I would also like to Extract this Wednesday 10/01/2023

 

Please and thank you

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @kgiles123 - there are likely many creative methods to achieve this.

     

    One method (assuming your text field is in a Label)

     

    Question 1:

     

    Index(
     Split(
     Label1.Text,
     " "
     ),
     2
    ).Value

     


    Question 2:

     

    With(
     {
     _get_text: Split(
     Label1.Text,
     " "
     )
     },
     Index(
     _get_text,
     1
     ).Value & " " & Index(
     _get_text,
     2
     ).Value
    )

     

  • kgiles123 Profile Picture
    224 on at

    Sorry for the late reply! Thank you for the help Imran-Ami! That worked perfect.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard