Casting date in Talend Data Integration

回眸只為那壹抹淺笑 提交于 2019-12-06 07:21:59

Talend offers you a nice way of handling date formats. You can easily change the date format in the Schema editor tab at the tMap window.

It works for both tMap input and output flows. I've added a picture for a better illustration.

to cast this string to a date using a formula.... error message that the date is not valid. The format of the target field is a MySQL Date field.

What I understand from your question is, you want to insert a date into MySQL Date field.

But the method that you are using, returns the 'String' type.

TalendDate.formatDate(String pattern, Date date);    //formats a date into Date/Time string

So in that case, if your field is of 'Date' type.

TalendDate.parseDate("yyyy-MM-dd", TalendDate.formatDate("yyyy-MM-dd",row3.rafw_dz_begi));
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!