Seven Stars

date dynamically change

Dear Folks 

dte.JPGi have created a new job that will transfer data. am using windows task scheduling for run this job automatically. its run nicely but i want date must update means Here am using 2018-03-10 next day it will run then date should be 2018-03-11.

How can i achieve this ? 

Please share your information.

4 REPLIES
Twelve Stars

Re: date dynamically change

Check that TalendDate.getCurrentDate() will usefull for your case.

Manohar B
Seven Stars

Re: date dynamically change

am getting an error  can not convert from String to date.

Eight Stars sgv
Eight Stars

Re: date dynamically change

so, change your data type or cast ..

Twelve Stars

Re: date dynamically change

change data type from sting to date in tmap

Manohar B