Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

time format

hi,

i have feild that present time like this:

1138

625 ( means 06:25)

1758 ( means 17:58)

how i chenge to format HH:MM

and i need that 625 will bt 06:25 , or 12 will be 00:00

thanks'

yarin.

4 Replies
Not applicable
Author

time(time#('625','hmm'),'hh:mm')

Not applicable
Author

try this

time(Time#(field,'hhmm'),'hh:mm')

or try this


Date(Date#(field,'hhmm'),'hh:mm')

ariel_klien
Specialist
Specialist

Hi

if you have 2 options in the filed (625,1758) you need to combine the 2

try this:

if(len(Field_Name)=3,TIME#(Field_Name,'hmm'),TIME#(Field_Name,'hhmm'))

BR

Ariel

jagan
Luminary Alumni
Luminary Alumni

Hi,

Use Alt() for handling multiple date formats in a single field

=Alt(time(time#('TimeDimension','hhmm'),'hh:mm'), time(time#('TimeDimension','hmm'),'hh:mm'), time(time#('TimeDimension','hhmm'),'hh:mm'),time(time#('TimeDimension','hh'),'hh:mm'))

Hope this helps you.

Regards,

Jagan.