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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jduenyas
Specialist
Specialist

Date function errors

Hi all

I have just discovered some anomaly:

In a text box convert a date like 2016-12-26 08:08:08 (or any date you wish) to numerical value:

NUM('2016-12-26 08:08:08') the result in this date sample will be   42730.338981481

now either in the same text box or a new one convert the result to date:

DATE(42730.338981481,'YYYY-MM-DD HH:MM:SS')  and the result will not be the same but rather 2016-12-26 08:12:08

Any idea why?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

You need to use mm for minutes and not MM (MM is for months)

DATE(42730.338981481,'YYYY-MM-DD HH:mm:SS')

View solution in original post

2 Replies
sunny_talwar

You need to use mm for minutes and not MM (MM is for months)

DATE(42730.338981481,'YYYY-MM-DD HH:mm:SS')

jduenyas
Specialist
Specialist
Author

You are a genius!

Thanks. How did I not think of it...