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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

Convert Timestamp to time only

I have a field 'ActivityDate' that appears as such: 2019-12-29 19:65:47.330   I want to convert this to time, specifically AM/PM time format. Ideally, I want to do this in the script, how can I achieve this?

1 Solution

Accepted Solutions
Or
MVP
MVP

I think you'd have two options here, both of which should work:

1) MakeTime(Hour(YourTime),Minute(YourTime),Second(YourTime))

2) Time(Frac(YourTime))

 

Either one can be further formatted, of course.

View solution in original post

1 Reply
Or
MVP
MVP

I think you'd have two options here, both of which should work:

1) MakeTime(Hour(YourTime),Minute(YourTime),Second(YourTime))

2) Time(Frac(YourTime))

 

Either one can be further formatted, of course.