Skip to main content
Announcements
Intermittent issues logging into the Qlik Community. We are working toward a resolution.
cancel
Showing results for 
Search instead for 
Did you mean: 
angmarceau1971
Contributor II
Contributor II

csv import and date/time conversions with WWW

I am new to Qlikview and I'm struggling with a .csv import and date/time conversions.

My string field value:  Mon, August 31, 2020 01:15:20.000

I've tried the following without success:

=date(timestamp#('MyDateTimeStampField', 'WWW, MMM DD, YYYY hh:mm:ss[.fff]'), 'YYYY/MM/DD')

=date(timestamp#('MyDateTimeStampField', 'WWW, MMM DD, YYYY hh:mm:ss.fff'), 'YYYY/MM/DD')

=date(timestamp#('MyDateTimeStampField', 'WWW, MMM DD, YYYY h:mm:ss.fff'), 'YYYY/MM/DD')

Can someone help me with what I'm doing wrong?

5 Replies
jwjackso
Specialist III
Specialist III

MMM is the format code for the short month name, Aug.  Try MMMM to get August.

angmarceau1971
Contributor II
Contributor II
Author

It's not the MMM DD, YYYY hh:mm:ss.fff I'm having a problem with.  That works if I remove the "Mon,",   It seems to be the WWW part that is giving me issues.

 

angmarceau1971
Contributor II
Contributor II
Author

To Clarify:

This Works:

=date(timestamp#('August 31, 2020 01:15:20.000','MMM DD, YYYY hh:mm:ss.fff'), 'YYYY/MM/DD')

This does not Work and what I'm trying to get to work:

=date(timestamp#('Mon, August 31, 2020 01:15:20.000', 'WWW, MMM DD, YYYY hh:mm:ss.fff'), 'YYYY/MM/DD')

also tried this and doesn't work.

=date(timestamp#('Mon, August 31, 2020 00:00:00.000','WWW, MMMM DD, YYYY hh:mm:ss.fff'), 'YYYY/MM/DD')

 

angmarceau1971
Contributor II
Contributor II
Author

Any help on this from anyone?  going on day 5 of trying to figure this out 😞

Brett_Bleess
Former Employee
Former Employee

Would recommend reviewing the following Help link as to what is actually supported with the function and the formatting required.  I suspect the commas are the issue from what I can tell.  

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/conventions-num...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.