Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Could you please let us know the exact format you are looking?
Then we can suggest the corresponding format to you.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
I want to append the current date in a filename and the date should be in CST timezone.
for ex: data02212019051444
Regards,
Puspanjali
Please refer the below diagram.
I have used the java libraray joda-time and the screen shots for tlibraryload are as below.
import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.DateTimeFormat;
tMap screenshot is as below.
row1.input+DateTime.now(DateTimeZone.forID( "America/Chicago" ) ).toString(DateTimeFormat.forPattern("MMddyyyyHHmmss"))
And you got the answer 🙂
Please spare a second to mark the topic as resolved. Kudos are also welcome 🙂
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Hey hi @pariyarath Kiran ,
Your solution is working perfectly when we give it in a file path, but I want to use context variable and while I am giving this path in a context variable, it's not working.
do you have any idea about this?
Thank you
Regards,
Sheetal
"D:/filedirectory/fileout_"+TalendDate.formatDate("yyyyMMdd_HHmm",TalendDate.getCurrentDate())+".csv"
Seems to work when writing a file, but not on tFileCopy??
Diregard... needed spaces around + 😂