# Format Tag to Read 01 instead of 1

**URL:** <https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306>\
**Category:** Ignition\
**Created:** [November 20, 2021, 4:34am UTC](https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306 "2021-11-20T04:34:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [November 20, 2021, 4:34am UTC](https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306/1 "2021-11-20T04:34:23Z")

</div>

Hi there,

I have a tag which is a sec and another as a min. I have that binded into a multistate indicator so that I can read it together when a certain event happens. That all works great however when the second is say at 1 second I want it to read as 01 so that it shows up like this 22:01 instead of 22:1 is there a simple way of fixing this?

---

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [November 20, 2021, 6:14am UTC](https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306/2 "2021-11-20T06:14:49Z")

</div>

in an expression you can use:  
numberFormat(1, ‘00’)

in a string you can use:  
“%02d” % (1)

---

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [November 20, 2021, 6:59am UTC](https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306/3 "2021-11-20T06:59:09Z")

</div>

Which expression should I put it in? I tried to put it into the text section but my text looks like this “text {tag1} : {tag2}” and if I use numberformat it errors me because of the text

---

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [November 20, 2021, 9:27am UTC](https://forum.inductiveautomation.com/t/format-tag-to-read-01-instead-of-1/53306/4 "2021-11-20T09:27:31Z")

</div>

Try something like this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/aca76e8b0a5d561f87e56c2378b2f574d1b2bf5b.png)
