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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator III
Creator III

Get time from datetime

Hello,

I have a field with date, time and something I can't define: "2021-01-02 17:35:59.964+01:00"

I'd like to have the date and time and just the time out of it for once. I've tried all the formulas of the community, but I'm not successful. I always get null values ​​as a result. I can use the load script or expression.

I need: DD.MM.YY hh:mm

and: hh:mm

Who can help me?

Labels (3)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

TimeStamp(TimeStamp#(Left(DateTime,23),'YYYY-MM-DD hh:mm:ss[.fff]'),'DD.MM.YY hh:mm') as TimeStamp,
Time(TimeStamp#(Left(DateTime,23),'YYYY-MM-DD hh:mm:ss[.fff]'),'hh:mm') as Time,

View solution in original post

2 Replies
hic
Former Employee
Former Employee

TimeStamp(TimeStamp#(Left(DateTime,23),'YYYY-MM-DD hh:mm:ss[.fff]'),'DD.MM.YY hh:mm') as TimeStamp,
Time(TimeStamp#(Left(DateTime,23),'YYYY-MM-DD hh:mm:ss[.fff]'),'hh:mm') as Time,

reporting_neu
Creator III
Creator III
Author

Thank you very much. I didn't think to shorten the characters. Very good idea!