# Converting 0001 num to 00:01:00 ( hh:mm:ss) format

**URL:** <https://techcommunity.softwareag.com/t/converting-0001-num-to-0000-hhss-format/124902>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [September 7, 2007, 7:21pm UTC](https://techcommunity.softwareag.com/t/converting-0001-num-to-0000-hhss-format/124902 "2007-09-07T19:21:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Patrick\_Collins](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John\_Patrick\_Collins](https://techcommunity.softwareag.com/u/John_Patrick_Collins)\
**Post date:** [September 7, 2007, 7:21pm UTC](https://techcommunity.softwareag.com/t/converting-0001-num-to-0000-hhss-format/124902/1 "2007-09-07T19:21:14Z")

</div>

Hi ,

I’m trying to convert a string (0001 ) to a time format of hh:mm:ss ( 00:01:00 ) using the pub.string:NumericFormat transformer. The Service IN num field and the Service Out value field ar eno problem but I try to set the Seervice IN pattern field to hh:mm:ss or even just hh:mm and the output produced in the Results pane is is hh:mm1.

Is there any easy method of carrying out this conversion?

Rgds  
John

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [September 7, 2007, 7:23pm UTC](https://techcommunity.softwareag.com/t/converting-0001-num-to-0000-hhss-format/124902/2 "2007-09-07T19:23:30Z")

</div>

Basically you have to use pub.date folder services to change the date format to desired format.

NumericFormat service is used for differently.

HTH,  
RMG
