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 III
Resolver III

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 III
Resolver III

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 Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (3,810)