Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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')