I have a clock control UpdateContext({clockb:Text(Now(),"[$-en-US] hh AM/PM")})
So it reads out like so, 08 AM. I need to have date picker roll back one day in the text field if that control says 05 AM. Instead of 3/21/2021 it rolls to 3/20/2021.
I was playing with this in the label, If(clockb = "05 PM", adddays(datepicker.selecteddate,-1)) but I think I'm pretty off on my logic here. Can someone help me out please?
hi @PJaeger try If(clockb = "10 PM",DatePicker1.SelectedDate-1,DatePicker1.SelectedDate)
Ok fixed that, but still hung up on - If(clockb = "05 PM", adddays(datepicker.selecteddate,-1))
hi @PJaeger you have UpdateContext({clockb:Text(Now(),"[$-en-US] hh AM/PM")}) which will add a space before "05 PM" try " 05 PM" or UpdateContext({clockb:Text(Now(),"[$-en-US]hh AM/PM")})
hope it helps
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473