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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Issue

I am getting date as 1/1/1800 from the input excel. Type is String. How to pass this value to destination Database. 

 

I received an error that its "Unparseable date" Please suggest

Labels (2)
1 Solution

Accepted Solutions
krengan21
Creator
Creator

hi @samisyed80 

try giving if condition based on the date format inside tmap and check whether it is working or not 

View solution in original post

5 Replies
krengan21
Creator
Creator

Hi @samisyed80

 

If 1/1/1800 is of the format M/d/yyyy then parse it as TalendDate.parseDate("M/d/yyyy",row1.date) in the target while parsing from the excel .Please make change in the parsedate function based on the format in the source.

 

 

Anonymous
Not applicable
Author

Hi Rengen,

 

I am already having this code for other proper date's from the input. Only 3 rows are having this 1/1/1800 (m/d/yyyy). Please suggest how to handle this now

 

("".equals(row1.Date) || row1.Date == null ? null : TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss zzz yyyy",row1.Date,"EN"))

krengan21
Creator
Creator

hi @samisyed80 

try giving if condition based on the date format inside tmap and check whether it is working or not 

Anonymous
Not applicable
Author

Thanks rengan its resolved

krengan21
Creator
Creator

Thanks for the update