Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
julruiz123
Partner - Creator
Partner - Creator

Load number as string

Hi,

I have the next situation, in a database is stored the time as follow

9.01

6.45

7.10

8.10

So i need replace point by colon, but the string change as follows

7:1

8:1

How i can prevent the zero runs out?

Thanks.

11 Replies
julruiz123
Partner - Creator
Partner - Creator
Author

This is the script that i tried

A01:

LOAD tradoc,

           trahoi,

     Time(Time#(trahoi,'hh.mm'),'hh:mm TT') as trahoi1

FROM

INMTRA_EXT_Copia.qvd

(qvd);

and this is the result

img.png

julruiz123
Partner - Creator
Partner - Creator
Author

Hi,

This is the solution

Time(Time#(Num(trahoi,'00.00'),'hh.mm'),'hh:mm TT') as trahoi1

Thanks for the help!