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?