Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Unparseable date: "2020-07-25"

I am getting java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2020-07-25"

 

I am using a tMap to do the below 

 

context.Apttus__Contract_Start_Date__c != null &&

TalendDate.compareDate(TalendDate.parseDateInUTC("yyyy-MM-dd 00:00:00", context.Apttus__Contract_Start_Date__c.replaceAll("\"", "")), TalendDate.getCurrentDate(), "yyyy-MM-dd") == 1 ?

TalendDate.formatDateInUTC("yyyy-MM-dd 00:00:00", TalendDate.addDate(TalendDate.parseDateInUTC("yyyy-MM-dd 00:00:00", context.Apttus__Contract_Start_Date__c.replaceAll("\"", "")),2,"DD")) :

TalendDate.formatDateInUTC("yyyy-MM-dd 00:00:00", TalendDate.addDate(TalendDate.getCurrentDate(),2,"DD"))

Labels (2)
2 Replies
Anonymous
Not applicable
Author

There exists value like "2020-07-25" without time, if you use date pattern "yyyy-MM-dd 00:00:00" to parse this value, it will throw this error. For testing, print the value of context.Apttus__Contract_Start_Date__c.replaceAll("\"""") to see what it is?

 

Regards
Shong

Anonymous
Not applicable
Author