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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date error

Hi everybody!

 

I'm having problems with inserting data in the date field.

I receive the data of an Excel and I have a column that has some dates, when I do in the TMap the parseDate I get the following error:
Unparseable date: "25/09/2014"

I have this data entry: "25/09/2014"

 

And in database, it is saved like this:
2015-12-01T17: 35: 17.55Z

 

I have tried with the solutions that I have found in this forum, but I have not had any luck. Can you help me?

Thank you!

Attached pictures of tMap!0683p000009M4o7.png0683p000009M4oC.png

 

regards!

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@LLBetween , now in tmap output section of the field date format specify the below one.

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

View solution in original post

8 Replies
manodwhb
Champion II
Champion II

@LLBetween ,try with below format.it should work.

 

TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssZ",row1.col)

Anonymous
Not applicable
Author

Thanks for your quick response.

The error keeps appearing: java.lang.RuntimeException: java.text.ParseException: Unparseable date: "25/09/2014"

I have to change a component or something in the Data Patter of tMap?

Thanks!
manodwhb
Champion II
Champion II

@LLBetween ,try with below one.

 

TalendDate.parseDate("dd/MM/yyyy",row1.col)

Anonymous
Not applicable
Author

Thanks for your reply!

 

Now I do not see the error, but it does not insert the data in the database.

In Database the field I need to be inserted like this: 2017-05-19T15:35:29.667Z

 

This message appears: | The field [salesForecastDate] is other type (3)

manodwhb
Champion II
Champion II

@LLBetween , now in tmap output section of the field date format specify the below one.

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

Anonymous
Not applicable
Author

Thanks for you reply!

 

I solved the problem with this code: "yyyy-MM-dd'T'HH:mm:ss'Z'" if i don't put 'Z' i can't insert into SQL Server.

 

I hope this can help someone with the same problem.

 

Regards!

manodwhb
Champion II
Champion II

@LLBetween , I gave the solution,which you should mark as a solution.

 

Anonymous
Not applicable
Author

Do it!