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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tima format

hi,

i have feild like this -141819 (hhmmss)

i want to make it to time like this:

14:18

how can i do it ?

thanks'

yarin.

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

TIme(Time#(fabs(-141819),'hhmmss'),'hh:mm')

or

TIme(Time#(141819,'hhmmss'),'hh:mm')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This should do it. Expression:

=Time(Time#(myField, 'HHMMSS'), 'HH:MM')

or script:

Time(Time#(myField, 'HHMMSS'), 'HH:MM') As myField,

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try below one.

 

Ex:  Time(Time#(141819,'hhmmss'),'hh:mm')

MayilVahanan

Hi

Try like this

TIme(Time#(fabs(-141819),'hhmmss'),'hh:mm')

or

TIme(Time#(141819,'hhmmss'),'hh:mm')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunilkumarqv
Specialist II
Specialist II

Set TimeFormat='hh:mm:ss';

you want to change the regional settings in OS

Not applicable
Author

hi yarin

=Time(Time#(FieldofTime, 'hhmmss'), 'hh:ss')