Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Time Format

Hi All,

I'm wondering how to change the format of my time field ? exempl:

12:12:03

12:12:45

12:13:03

12:13:54

i want to change this time to :

12:12

12:13

???

regards

1 Solution

Accepted Solutions
vivek_niti
Partner - Creator
Partner - Creator

Hi,

Try using

time(ceil(num(F1),0.001),'hh:mm')

View solution in original post

4 Replies
Gysbert_Wassenaar

If it's already a time field then time(MyTime, 'hh:mm') will do. If it's a string you need time(time#(MyTime,'hh:mm:ss'),'hh:mm'). Replace MyTime with the name of your time field.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

i did the same thing , but i got :

12:12

12:12

12:13

12:13

Gysbert_Wassenaar

ah, in that case use time(floor(MyTime,1/1440),'hh:mm')


talk is cheap, supply exceeds demand
vivek_niti
Partner - Creator
Partner - Creator

Hi,

Try using

time(ceil(num(F1),0.001),'hh:mm')