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: 
rbecher
MVP
MVP

converting date from xml file

Hello,

I have to read a xml file with a date value in this format:

'Thu Apr 01 00:00:00 CEST 2010'
'Fri Jan 01 00:00:00 CET 2010'

I've tried without the time like this

'Thu Apr 01 2010'
'Fri Jan 01 2010'

date(date#(field, 'WWW MMM DD YYYY'))

but can not convert it to a date. What is wrong?

- Ralf

Astrato.io Head of R&D
1 Solution

Accepted Solutions
rbecher
MVP
MVP
Author

..sometimes you do not see the forest for the trees. Smile

I just had to strip the redundant day (WWW) like this:

date(date#(trim(mid(field, 5, 7) & right(field, 4)), 'MMM DD YYYY')) as startPeriod

- Ralf

Astrato.io Head of R&D

View solution in original post

1 Reply
rbecher
MVP
MVP
Author

..sometimes you do not see the forest for the trees. Smile

I just had to strip the redundant day (WWW) like this:

date(date#(trim(mid(field, 5, 7) & right(field, 4)), 'MMM DD YYYY')) as startPeriod

- Ralf

Astrato.io Head of R&D