cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

ThisItem.Date - Show Date Only???

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: ThisItem.Date - Show Date Only???

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.

View solution in original post

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: ThisItem.Date - Show Date Only???

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.

View solution in original post

Highlighted
Community Champion
Community Champion

Re: ThisItem.Date - Show Date Only???

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.

Highlighted
Community Support
Community Support

Re: ThisItem.Date - Show Date Only???

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: ThisItem.Date - Show Date Only???

Very very helpful! thank you!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,232)