# Expression tag to convert minutes to hh:mm:ss

**URL:** <https://forum.inductiveautomation.com/t/expression-tag-to-convert-minutes-to-hh-mm-ss/9154>\
**Category:** Ignition\
**Created:** [October 7, 2014, 8:50pm UTC](https://forum.inductiveautomation.com/t/expression-tag-to-convert-minutes-to-hh-mm-ss/9154 "2014-10-07T20:50:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 7, 2014, 9:10pm UTC](https://forum.inductiveautomation.com/t/expression-tag-to-convert-minutes-to-hh-mm-ss/9154/2 "2014-10-07T21:10:35Z")

</div>

Not pretty, but it seems to work:

numberFormat(floor({_GenericSim_/Writeable/WriteableFloat1} / 60),"#0")+":"+numberFormat(60\*(({_GenericSim_/Writeable/WriteableFloat1} / 60)-floor({_GenericSim_/Writeable/WriteableFloat1} / 60)),“00”)+":" + numberFormat(60\*({_GenericSim_/Writeable/WriteableFloat1} - floor({_GenericSim_/Writeable/WriteableFloat1})),“00”)

Let me know if you want the parts broken down and explained.

---

_[View the full topic](https://forum.inductiveautomation.com/t/expression-tag-to-convert-minutes-to-hh-mm-ss/9154)._
