kettle job 获取当前日期
官方文档:https://wiki.pentaho.com/pages/viewpage.action?pageId=4358187
1 useDate =0; 2 if (useDate == 0) { 3 date = new java.util.Date(); 4 //date.setDate(date.getDate()-1); //Go back 1 full day 5 dateFormat = new java.text.SimpleDateFormat("yyyyMMdd"); 6 newDateStr = dateFormat.format(date); 7 parent_job.setVariable("start_date", newDateStr); 8 } 9 true;