I have used TalendDate.addDate(TalendDate.getCurrentDate(),-1,"DD")
and the out put is "Wed Dec 28 23:51:27 IST 2016" .
I want it in "2016-12-28" format.
Is there any way to get that?
Thanks in advance.
I have used TalendDate.addDate(TalendDate.getCurrentDate(),-1,"DD")
and the out put is "Wed Dec 28 23:51:27 IST 2016" .
I want it in "2016-12-28" format.
Is there any way to get that?
Thanks in advance.
This code will format it how you want it.