web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ThisItem.Date - Show D...
Power Apps
Unanswered

ThisItem.Date - Show Date Only???

(1) ShareShare
ReportReport
Posted on by 36

Is there anyway to get ThisItem.Date to not show the time in the preview screen? Perhaps trim it or use another function? Thanks!


power_apps_revision_06.jpg

Categories:
I have the same question (0)
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @Garak0410 ,

     

    use this function to get only time,

     

     

    Text(thisItem.Date,DateTimeFormat.LongTime)
    // This will gives the output as 06:54:30 PM
    
    Text(thisItem.Date,DateTimeFormat.ShortTime)
    // This will gives the output as 06:54 PM
    
    Text(thisItem.Date,DateTimeFormat.ShortDate)
    // This will gives the output as 05/27/2020
    

     

     

    DateTimeFormat will give around 8 functions to formate the date and time in PowerApps.

     

    I hope this resolved your issue if you see any challenge/need further help let me know I am always happy to help.

     

    Regards,
    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Garak0410 ,

    Text(ThisItem.Date,ShortDate)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • v-xida-msft Profile Picture
    on at

    HI @Garak0410 ,

    Do you want to show Date only value within your Gallery?

     

    Based on the needs that you mentioned, I think the Text function could achieve your needs. Please consider set the Text property of the Date Time Label in your Gallery to following:

    Text(ThisItem.Date, "mm/dd/yyyy")

    Please check the following article for more details about the Text function:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text

     

    In addition, I think the Split function could also achieve your needs. Please set the Text property of the Date Time Label in your Gallery to following:

    First(Split(Text(ThisItem.Date), " ")).Result

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Brian Wolters Profile Picture
    36 on at

    Very very helpful! thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard