Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Import Dates form csv to QlikView

Hi,

I have the following probleml. I have to import data from csv to Qlikview. Dates in csv look like: 3/11/2015  1:00:45 AM

(or M/DD/YYYY h:mm:ss AM).

The problem is that QV does not recognoze it like date and functions like date() or weekday() or date(num#()) on this field
don't return any value.

Please help.

Thanks,

5 Replies
Gysbert_Wassenaar

Try date(floor(timestamp#('3/11/2015  1:00:45 AM','M/DD/YYYY  h:mm:ss TT')),'M/DD/YYYY')


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

expression

date(floor((timestamp#('3/11/2015  1:00:45 AM','M/DD/YYYY  h:mm:ss TT')),'M/DD/YYYY'))

does not return anything.

maxgro
MVP
MVP

in a textbox the output of

=date(floor(timestamp#('3/11/2015  1:00:45 AM','M/DD/YYYY  h:mm:ss TT')),'M/DD/YYYY')

in my QlikView is 3/11/2015

post some lines of csv file, if you can

Anonymous
Not applicable
Author

Check the number of spaces here: '3/11/2015  1:00:45 AM'

and here: 'M/DD/YYYY  h:mm:ss TT'

Make sure they are the same.

MarcoWedel

maybe because you added some brackets:

QlikCommunity_Thread_165268_Pic1.JPG

hope this helps

regards

Marco