Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have to convert string format which is in this format coming from oralce input "2018-10-01 00:00:00" to yyyyMMdd string or number format .
when i use below code in talend tjavarow ,
System.out.println(TalendDate.parseDate("2018-10-01 00:00:00","yyyyMMdd"));
it throws an error as
local_project.test_date_functions_0_1.Test_date_Functions - tJavaRow_1 java.text.ParseException: Unparseable date: "yyyyMMdd"local_project.test_date_functions_0_1.Test_date_Functions - tJavaRow_1 java.text.ParseException: Unparseable date: "yyyyMMdd"Exception in component tJavaRow_1java.lang.RuntimeException: java.text.ParseException: Unparseable date: "yyyyMMdd" at routines.TalendDate.parseDate(TalendDate.java:889) at routines.TalendDate.parseDate(TalendDate.java:833)
can someone help me on this