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 / Set date in edit text ...
Power Apps
Answered

Set date in edit text field with variable with only date

(0) ShareShare
ReportReport
Posted on by 24

Hi !

 

A simple question, but I cant seem to figure it out.

 

I added a date column in my table( where i selected only date not date & time)

I have added the codes in canvas app, and on my last page I am summarizing all data that has been filled in so fare in the app.

 

I am using edit text fields and not a form here. For all the data that is viewed here I have used variable to show the data that has been selected / written in previous pages in the app. But for the date column it is also showing time and I want to hide this or somehow convert it to only showing the date.

 

In edit text under Text I have written: Varname.'Date name name' 

What is missing here to be able to only see the selected date?

 

datetime.PNG

 

In the page where the data is collected I have used datepicker and the name as well as selecteddate in the code. I get the date up in my summarization, but with both date and time. 

 

Thank you so much for the help!

Categories:
  • Verified answer
    scalca Profile Picture
    on at

    there are several ways on how to do it
    try this: Text(DatePicker.SelectedDate, "mm/dd/yyyy") for example

    pls find here the documentation Date, DateTime, and Time functions - Power Platform | Microsoft Learn

    and here some good practices by matthew devaney All Power Apps Date & Time Functions (With Examples) (matthewdevaney.com)

     

     

  • sandy7 Profile Picture
    24 on at

    Hi!

     

    Thank you so much! This worked and i really appreciate it. 

     

    I will check out Matthew Devaney thank you.

     

    Regards

     

     

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