I want to print an hour ago with a leading zero for a watch face I’m creating. I’ve gotten it to work in the designer two different ways, but both fail on the watch.
For this, pretend it is 6 AM:
Method 1:
$(#Dh#-1)<1?#Dh#+11:$$(#Dh#-1)<10?“0”+(#Dh#-1):#Dh#-1$
This returns 05 in the designer, but “0”+5 on the watch.
Method 2:
$(#Dh#-1)<1?#Dh#+11:$$(#Dh#-1)<10?(“0”+(#Dh#-1)):#Dh#-1$
This returns 05 in the designer, but 0 on the watch.
Any thoughts (other than handing the first digit and the second digit of the hour separately)?
You know what would be wonderful? An equivalent to CStr() or CInt() to force conversions to string or integer (I’d be happy with just CStr personally, but they usually come as a pair).