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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
cscherer
Contributor
Contributor

Separate time from date

Hello,

I want to separate a field which is in this form:

11.01.2012 09:53

into two fields:

date:

11.01.2012

time:

09:53

I tried time() and makedate(), but they don`t work.

Could you please help me?

Thank you in advance,

Clemens

4 Replies
Anonymous
Not applicable

use date(field)-it will give u the date

use time(field) - gives u the time

cscherer
Contributor
Contributor
Author

Hello,

thx, but this doesn`t work.

I tried left(date, 10), this seems to work.

thx for your help

reg,

c.

Not applicable

To remove the time and preserve as a date field, assuming your field is called InputDate, use:

Date(Floor(InputDate))

To get just the time, use:

Time(InputDate)

cscherer
Contributor
Contributor
Author

thanks for the answer, i`ll try it!