I have a string "20171110" and I want this to be converted to Date format yyyy-mm-dd of date datatype in Pentaho Data Integration. I tried using select values and calculator but nothing worked. Please suggest.
Asked
Active
Viewed 2,690 times
0
-
A date field doesn't have a format. But if you need the string representation of the date in yyyy-mm-dd format, then you can cast the string to a date (format yyyymmdd), and then cast it back to a string in format yyyy-mm-dd. – matthiash Nov 21 '17 at 21:45