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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Unparsable date using Tmap

Hello guys,

 

How you are ?

 

I'm facing a issue when i trying to parse a String column to Date. The error name is Unparseable date "11/28/2019"  "7:12:09: AM"

 

The column is "REQDTHR"  

0683p000009M8JI.png

 

With tMap i'm using the expression bellow 

 

0683p000009M80M.png

 

And when i run my job i receive this error mensage 

 

0683p000009M8GF.png

 

 

I don't need the time just from the date, knowing this I tried using String.format ("% 10s", row5.REQDTHR) EREPLACE too, but nothing is working to remove these quotes correctly.

Thanks for listening.

I appreciate any help.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This is being caused by the double quotes you have inside your date. For example....

 

11/28/2019"  "7:12:09 AM

 

A way you get round this is to use the code below inside your parseDate method instead of row5.REQDTHR

row5.REQDTHR.replaceAll("\"", "")

View solution in original post

1 Reply
Anonymous
Not applicable
Author

This is being caused by the double quotes you have inside your date. For example....

 

11/28/2019"  "7:12:09 AM

 

A way you get round this is to use the code below inside your parseDate method instead of row5.REQDTHR

row5.REQDTHR.replaceAll("\"", "")