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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

"yyyy-MM-dd 00:00:00" will not work.

 

if you data is in format 2020-07-25  , no need to use 00:00:00 in pattern. "yyyy-MM-dd" would be enough.

 

Are you facing any problem?

View solution in original post

1 Reply
akumar2301
Specialist II
Specialist II

"yyyy-MM-dd 00:00:00" will not work.

 

if you data is in format 2020-07-25  , no need to use 00:00:00 in pattern. "yyyy-MM-dd" would be enough.

 

Are you facing any problem?