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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
JasonMiller
Contributor III
Contributor III

can't figure out txmlmap date format "2020-04-12T23:00:00Z"

I'm really struggling with this date format for some reason, even though it looks simple. I'm calling a rest service which is giving me back an xml document, and I'm splitting it into columns with a txmlmap. I've tried a hundred permutations of date formats, but I just can't seem to receive these dates successfully. Anybody know what the format should be?

 

<start_time>2020-04-12T23:00:00Z</start_time>

 

Exception in component tXMLMap_1_TXMLMAP_OUT (ListMeetings)
java.lang.RuntimeException: Unparseable date: "2020-04-12T23:00:00Z"

Labels (2)
1 Solution

Accepted Solutions
JasonMiller
Contributor III
Contributor III
Author

Thank you but nevermind, I figured it out. Using txmlmap instead of tmap it's necessary to edit the schema on the left side in the "Tree Schema Editor".. so I had the right format, but in the wrong place. "dd-MM-yyyy'T'HH:mm:ss'Z'" was right all along. I thought I was going crazy!!

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

@jmille341 , can you try to use the below format.

YYYY-MM-DDThh:mm:ssZ

JasonMiller
Contributor III
Contributor III
Author

Same runtime error, but thank you. In the formats dropdown, Talend provides this one "yyyy-MM-dd'T'HH:mm:ss'000Z'" which I've been using as the basis for my attempts, but I can't seem to get it. I think I do need HH instead of hh due to 24 hour format.

 

"yyyy-MM-dd'T'HH:mm:ss'000Z'"

"2020-04-12T23:00:00Z"

JasonMiller
Contributor III
Contributor III
Author

Thank you but nevermind, I figured it out. Using txmlmap instead of tmap it's necessary to edit the schema on the left side in the "Tree Schema Editor".. so I had the right format, but in the wrong place. "dd-MM-yyyy'T'HH:mm:ss'Z'" was right all along. I thought I was going crazy!!