问题描述
在tLogRow1(在trestclient之后),我得到了正确的日期。但是在tXmlMap之后,我得到了错误的日期。
tLogRow1输出=>
<Date>2020-08-21</Date>
但在tLogRow2输出中=>
0027-02-10
在日期表达式的txmlmap中,我写了TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",[row4.body:/root/root/Date]))
但结果仍然相同。
解决方法
通过更改tXmlMap的“树模式编辑器”的日期格式,我可以解决该问题。