Here is a way to “sneak it” because the US is not on 24 hour time
Create two text boxes and group them together then move and size them to what you want
First one tag is for most of the world that uses 24 hour time and Day Month Year format
[DAY_WEEK_S], [DAY_1_31_Z] [MON_S]
for the color opacity use this tag (be sure to remove the default 100% so it is only the tag)
[IS_24H] ? 100 : 0
Second one use US Time
[DAY_WEEK_S], [MON_S] [DAY_1_31_Z]
and opacity is [IS_24H] ? 0 : 100
That way if you are in the US which is one of the few countries that uses Month Day Year format
Hi, thanks for the helpful answer! I wasn’t aware of the LANG_LOC tag but it looks like it should do the trick.
As I understand it, your solution means that I need to have two separate date components, right? One formatted the US way, and the other formatted the UK way, and then I use the tag for each one to set its respective opacity?
Won’t that result in additional battery drain though, to have two date components instead of just one?
I guess there’s no way to achieve this with just a single date component.
Hi Ron, thanks for the suggestion. Unfortunately a solution based on 24 vs 12 hour time, wouldn’t really solve my goal, because although the USA is the only country in the world that uses MM-DD-YY, it is not the only country that uses 12 hour time.
There are other countries that use the international DD-MM-YY format, but also use 12 hour time - such as New Zealand, Australia, and the United Kingdom.
Plus, on Samsung smartphones (such as my Galaxy S23), there is a separate setting for “Use 24-hour format” found under Settings > General Management > Date and Time, which is independant of the device language setting.
So I need a solution that is based on the device’s language setting, not based on whether a 12 hour clock is used.
Is there any reason why WFS doesn’t have a native solution for showing the date using the device’s language format? Or is there a plan to add this in the future? After all, Android itself natively supports this functionality on smartphones, so why not the watch?
Hi again, I’ve been playing around with ternary operators, as documented at the bottom of this page:
In theory, I should be able to use a ternary operator inside a single date or text field, using [LANG_LOC]==“en_US” as the conditional_operation, and output either the USA or non-USA date format based on this conditional. This would mean I can have just one date/text field, instead of needing two of them and manipulating the opacity of each one.