stismo
July 6, 2022, 11:31am
1
I’m using this formula to check if the time format is 12h/24h and if it’s 12h, display AM and PM:
([IS_24H]?“”:([HOUR_1_24]<12?“AM”:“PM”))
It works like as it should on my PC but when I load it on the watch, it shows “false” (my watch uses 24h format). What am I doing wrong?
So this is what I needed to do:
(![IS_24H]?([HOUR_1_24]<12?“AM”:“PM”):“”)
Switch the logic and negate the boolean, in case others are looking for the same answer.
1 Like
I recommend you to solve it like the workaround below.
([IS_24H]?“ ”:([HOUR_1_24]<12?“AM”:“PM”))
please use " " instead of “” for empty string.
Sen
July 8, 2022, 10:55am
4
([IS_24H] <1? [AMPM] : “24H”) try this.
stismo
July 10, 2022, 9:46am
5
([IS_24H]>=1?“24H”:[AMPM])
I have to use this one, otherwise it doesn’t display “24H” for me.
Sen
July 10, 2022, 2:48pm
6
([IS_24H] will display 0 or 1 (0=12H 1=24h) so ([IS_24H]>=1 wont work.
stismo
July 10, 2022, 10:02pm
7
I hear you and I did try just to check the value (it’s 0 or 1) but like I said until I changed it, it didn’t work as it should have.
Also, for some reason my other version that worked for me earlier didn’t work either.