Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
-1 * context.nb_days should work
I'm using v3.0.4 and am not able to modify the TalendDate system routine. Are there any special things I need to do to be able to modify it? Thanks.
String logFileName = "D:/talend/AAA_" + TalendDate.formatDate("yyyyMMdd", TalendDate.addDate(TalendDate.getCurrentDate(), - nb_day, "dd")) + ".log";
Thanks a lot. I did something similar.
"F:/Talend/Work" + TalendDate.formatDate("MMddyyyy",TalendDate.addDate(TalendDate.getCurrentDate(), - 10, "dd"))+".csv"