Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"))
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