How do I get the 12hr clock to not show a leading 0 when its a single digit hour?

How do I get the 12hr clock to not show a leading 0 when its a single digit hour?

Like 1:13 instead of 01:13

]]>

7 Commentsto How do I get the 12hr clock to not show a leading 0 when its a single digit hour?

  1. Anonymous says:

    < ![CDATA[

    Right now the expert format would show hh:mm:ss. You can remove one of the h’s but I’m not sure what would translate when it reaches 10 o’clock

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Didn’t tested, but Olin James​’s suggestion (write only one h) should work as expected (1,2,…9,10…)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I  have tested this….  5 billion times (no really I actually have tested it that many times) and I can confirm that it in fact will translate properly.  where theres a single digit it leaves out the 0, and after 9 it adds a leading 1

    ]]>

  4. Anonymous says:

    < ![CDATA[

    I tested it right at 10pm and it did work.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    you can also make it 24hr time by using H instead of h

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Thanks guys! That works great, wonder why that isn’t the default with only one h…

    ]]>

  7. Anonymous says:

    < ![CDATA[

    most of us don’t use h or hh, but HH which is why its not defaulted to just h

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *