Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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