Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Using the Date value from datepicker in text field

(0) ShareShare
ReportReport
Posted on by 19

Hi community, 

 

I need something fairly simple but so far I'm not able to find solution. Maybe I'm doing something wrong, so please advice. 

 

I have an app with a date and time picker. I want to create a TextField which show the month number for example is you pick October the text filed to show "10" 

 

I can not find the Data Picker source for DateValue. Can you help me please. 

 

Thanks in avdance.

Categories:
  • Verified answer
    Ageorgievtbs Profile Picture
    19 on at
    Re: Using the Date value from datepicker in text field

    Hi Again, 

     

    thanks for the support. I manage to overcome the issue by placing the Text Field inside the Form. Not is is working. Still can not imagine why it is not working when placed outside the form, but at least my app work perfectly. 

     

    Thanks again for the time spend with me!  

  • Ageorgievtbs Profile Picture
    19 on at
    Re: Using the Date value from datepicker in text field

    Good morning, 

     

    I put default date = Today() I also pich date from the date picker - 20.10.2023 no effect. 

     

    Still it show blank. 

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Using the Date value from datepicker in text field

    Can you put the .DefaultDate to

    Today()

    SpongYe_0-1697119016107.png

     

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Using the Date value from datepicker in text field

    I see you have not selected a date in the screenshot that why its blank.

    Could you also post another screenshot with a date seleted and see if it would say Blank also?

     

  • Ageorgievtbs Profile Picture
    19 on at
    Re: Using the Date value from datepicker in text field

    Yes, its highlighted in green 🙂 

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Using the Date value from datepicker in text field

    Hi @Ageorgievtbs 

     

    Does the DatePick gets Highlighted? Like mine below if you select the Label and click in the Formula bar?

    SpongYe_0-1697117664067.png

     

  • Ageorgievtbs Profile Picture
    19 on at
    Re: Using the Date value from datepicker in text field

    I did select date from DatePicker few times but its again empty text field. 

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Using the Date value from datepicker in text field

    Please select a date in the DatePicker and you should see results. That means the datepicker is empty or no date is selected. 

  • Ageorgievtbs Profile Picture
    19 on at
    Re: Using the Date value from datepicker in text field

    Its getting better, no error message, but again no usefull result. Not its blank

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Using the Date value from datepicker in text field

    Hi @Ageorgievtbs 

     

    Please change from DataCard to DataValue.

    Your screenshot shows that DataValue1 is the input field:

    Text(DataValue1.SelectedDate, "mm")

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard