Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Defo
Contributor III
Contributor III

Date# does not recognize the correct date

Hi everybody! I have a particular issue with the Date# function, which does not recognize correctly a date column that I have as a string (IsText true, but I don't have access to the soure data and I can not verify that).

Defo_0-1659430479516.png

The function works correctly only for January's days and num function gives slightly different results for each months.

Can you please help me out with this function? Maybe I'm using it in the wrong way.

thankss

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below
num(date#(RegistrationDate, 'yyyy-MM-dd')) or num(date#(RegistrationDate, 'YYYY-MM-DD'))


for Month, "MM" need to be in upper case.
mm- indicates minute.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi

Try like below
num(date#(RegistrationDate, 'yyyy-MM-dd')) or num(date#(RegistrationDate, 'YYYY-MM-DD'))


for Month, "MM" need to be in upper case.
mm- indicates minute.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Defo
Contributor III
Contributor III
Author

Thanks a lot!! Sorry for the dumb question, didn't notice it.

MayilVahanan

No Worries. Learning is good 😄

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.