How to Change the date format yyyy/MM/dd HH:mm:ss to dd_mm_yy through modified java script value in pentaho

Ms13 picture Ms13 · May 12, 2016 · Viewed 9.2k times · Source

How to Change the date format yyyy/MM/dd HH:mm:ss to dd_mm_yy through modified java script value in pentaho?

Answer

mzy picture mzy · May 13, 2016

Use this function in Modified Java Script Value step:

date2str(input, "dd_MM_yy");

kettle example