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

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

DateTime sepration tmap to Mysql Workbench

Hello,

 

I have been trying to delete time from DateTime String to Date format "yyyy-MM-dd" using tmap component.

My components are:     tFileInputDelimited to tmap to tLogRow to tMysqlOutput

When I excute the job there are no errors and in the tLogRow everything looks perfectly fine as I needed. However, I get the date format as "yyyy-MM-dd hh:mm:ss" instead of "yyyy-MM-dd" in the final output which is tMysqlOutput (in my case am using Mysql Workbench).

 

I have used the expression : TalendDate.parseDate("yyyy-MM-dd",row1.Date) 

IMAGES ATTACHED

0683p000009M2jG.png0683p000009M2jL.png0683p000009M2cf.png

 

 

Thank you for helping guys,

Sherif

Labels (2)
2 Replies
akumar2301
Specialist II
Specialist II

what is datatype of column in database ? is it date , datetime or timestamp? if it is not date type , it will display timestamp.

 

Anonymous
Not applicable
Author

Hi,

 

    This looks like the data's timezone is getting changed by 1 hour while loading to MySQL server.

 

     Could you please try to load the date column where your timezone is explicitly mentioned in the output of tMap?

 

     It may resolve the issue.

 

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 🙂