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 / Using the Date value f...
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.

Screenshot 2023-10-12 145944.png
Categories:
I have the same question (0)
  • VPAST Profile Picture
    25 on at

    Hi @Ageorgievtbs you can try the following to extract the month off the Datetime Picker: 

    Month(DatePicker1.SelectedDate)

    If you have any other question you can tag me. 

     

    Cheers! 

     

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @Ageorgievtbs 

     

    Pleas eus eon the label.Text

    Text('Date & Time_DataCard1'.SelectedDate, "mm")

    SpongYe_0-1697114281110.png

     

     

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

  • Ageorgievtbs Profile Picture
    19 on at

    I tryed both of the above even before posting the question but for some reason its not working 😞 

    Screenshot 2023-10-12 155836.png
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

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

  • Ageorgievtbs Profile Picture
    19 on at

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

    Screenshot 2023-10-12 160841.png
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    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

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

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    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

    Yes, its highlighted in green 🙂 

    Screenshot 2023-10-12 164823.png
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    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?

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard