Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How can I convert date to string with TalendDate.getCurrentDate() ?

Hello everybody,
I want to convert a date-format to a string without periods in my tmap-Component and I don`t know, if I use it right and how I can get the desired result:
I want to create an output-table which contains the actual date but without periods and without any separators at all, like this: ddMMyy
Is it possible, to write it directly into my output-table?
I think, I can do this job with the expression "TalendDate.getCurrentDate()", right?
Can somebody help me how to use it correctly? What do I have to write into the expression editor to make it work?
In the following screenshot I wrote the function "TalendDate.getCurrentDate()" into the table-cell, where I want to get the result:
0683p000009MBkg.png
(FYI: I`m a beginner in talend with nearly no Java-experience.)

Best regards
Bexy 0683p000009MACn.png
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You can use TalendDate.getDate("ddMMyy") instead of TalendDate.getCurrentDate().

View solution in original post

2 Replies
Anonymous
Not applicable
Author

You can use TalendDate.getDate("ddMMyy") instead of TalendDate.getCurrentDate().
Anonymous
Not applicable
Author

Thank you, jlolling.
 I will test how it works.