cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerUser1
Level: Power Up

Date time picker to show value in a label

I'd like to show the value of my date time picker to a label in the same form. any help please, Thanks formatted like this, LABEL: ‎06-02-2017 06:45 AM
4 REPLIES 4
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Date time picker to show value in a label

You can use the Text function to format the label based on the value of the date/time picker object. For example, if the date/time picker is in a card called 'DateAndTimeColumn_DataCard2', then you can set the label Text property to this:

Text(DateAndTimeColumn_DataCard2.Update, "mm-dd-yyyy hh:mm am/pm")

If you're in a display form, then you'd use the 'Default' property of the data card instead of the 'Update' property.

Raf
Level: Powered On

Re: Date time picker to show value in a label

exactly what I need, but id I have 2 data picker how can I apply the Date diff formula? I tried something like this: DateDiff(Entered_x0020_Queue_x0020_Time_DataCard4_2.Default,Released_x0020_Time0_DataCard4_2.Default,Minute) but no luck.
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Date time picker to show value in a label

What do you get when you try that formula? Nothing? Some error?

 

Raf
Level: Powered On

Re: Date time picker to show value in a label

I got what I need, Thank you so much for the support!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,726)