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

Conditional between 2 dates

 

Good morning, I want to create a date conditional. Example when someone enters more than 9 AM a delay message appears, use the microsoft guide but it does not show the expected messages, your help please

 

If( TimeValue( FinishedAt.Text ) < TimeValue( "5:00:00.000 PM" ),
    "You made it!",
    "Too late!"
)

 

GerardoPlass_0-1657123419625.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
SebS
Resolver II
Resolver II

Hello,

 

I removed ".000" and left 

 

"5:00:00 PM"

 

The Formula start working properly so must be format issue also in my inputbox I use "4:59:00 PM"

 

Regards 

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

@GerardoPlass 

Put a button on the screen with the OnSelect: UpdateContext({tme:Now())

Make the FinishedAt.Text default property: tme

In the Text property of a label: 

If(TimeValue( TextInput4.Text) < TimeValue( "5:00:00 PM" ),
"You made it!",
"Too late!"
)

 

SebS
Resolver II
Resolver II

Hello,

 

I removed ".000" and left 

 

"5:00:00 PM"

 

The Formula start working properly so must be format issue also in my inputbox I use "4:59:00 PM"

 

Regards 

GerardoPlass
Helper I
Helper I

Thank You!! pensar que la solucion estaba eliminando .000 hahaha . ya lo realice

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,182)