cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Label showing time of another field is unable to show time when at default value

Hi all, 

 

I need to convert time to text value and update database entry (data type: time(7))

 

A textbox is setup for text input and then a lable is setup to convert text into HH:MM Am/PM format.  Setting of the label as below:Screen Shot 2017-06-27 at 3.25.21 PM.pngScreen Shot 2017-06-27 at 3.25.40 PM.png

 

At default, the textbox is set at the current time using Now() function.

Screen Shot 2017-06-27 at 3.19.19 PM.png

 

However the lable is unable to show time when textbox is at default value.

Screen Shot 2017-06-27 at 3.24.56 PM.png

 

Very apprecaite if you can tell me how I can get the label to reflect value of the textbox when at its default value.

 

Much thanks in advanced.

 

Regards,

Freda

2 REPLIES 2
Regular Visitor

I also tried to set for the label to refer to the textbox (tiEndTime)

If( IsBlank( tiEndTime.Text ), Text(Now(), "[$-en-US]HH:MM AM/PM"), Text(TimeValue(tiEndTime.Text), "[$-en-US]hh:mm AM/PM"))

 

Not successful.  

Regular Visitor

I also tried to set for the label to refer to the textbox (tiEndTime)

If( IsBlank( tiEndTime.Text ), Text(Now(), "[$-en-US]HH:MM AM/PM"), Text(TimeValue(tiEndTime.Text), "[$-en-US]hh:mm AM/PM"))

 

Not successful.  

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,321)