Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
P_Kale
Creator II
Creator II

Extract only Time from column

Hi,

I have a column which have date & time in 1 column. I have manage to separate date from this but how i can separate time in another column. Below given is the eg.

INTERACTIONCREATEDAT
2022-03-02 18:53:50.000

 

I want time i.e. 18:53 only in another column ( Not want seconds). How I achieve this.

Thanks in advance. 

 

 

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Time(Interaction, 'hh:mm')

will still include the date in the internal value. That may make for peculiar sorting. Iff you want just the time portion, I would recommend 

Time(Frac(Interaction), 'hh:mm')

-Rob

View solution in original post

5 Replies
MatheusC
Specialist
Specialist

@P_Kale
 
try,

Time(Interaction, 'hh:mm')
Att, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Anil_Babu_Samineni

I agree @MatheusC , but sometimes it must be like below due to format.

Time(TimeStamp#(Interaction), 'hh:mm') as Interaction_New

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Time(Interaction, 'hh:mm')

will still include the date in the internal value. That may make for peculiar sorting. Iff you want just the time portion, I would recommend 

Time(Frac(Interaction), 'hh:mm')

-Rob

P_Kale
Creator II
Creator II
Author

Thanks for help.

P_Kale
Creator II
Creator II
Author

Thanks for help