Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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