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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Date to string conversion

Hi,



I'm new to talend.
I have a column with date data type and i need to store it as a string in the target.
How to do that??


Thanks in advance

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
Here is a built-in method TalendDate.formatDate(String pattern, java.util.Date date) in tMap to convert date to string.
Please see my screenshot
In addition, there is a component tConvertType which allows specific conversions at runtime from one Talend java type to another.

Best regards
Sabrina

0683p000009MGjA.png

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,
Here is a built-in method TalendDate.formatDate(String pattern, java.util.Date date) in tMap to convert date to string.
Please see my screenshot
In addition, there is a component tConvertType which allows specific conversions at runtime from one Talend java type to another.

Best regards
Sabrina

0683p000009MGjA.png
Anonymous
Not applicable
Author

thank you sabrina