Date Expression in Talend
Converting string to date:
Relational.ISNULL(row1.Checkdate)==true?
null:new SimpleDateFormat("MM-dd-yyyy hh:mm:ss").parse(row1.Checkdate)
Source :
See the difference b/w small and capital
http://javatechniques.com/blog/dateformat-and-simpledateformat-examples/
Converting string to date:
Relational.ISNULL(row1.Checkdate)==true?
null:new SimpleDateFormat("MM-dd-yyyy hh:mm:ss").parse(row1.Checkdate)
Source :
See the difference b/w small and capital
http://javatechniques.com/blog/dateformat-and-simpledateformat-examples/
No comments:
Post a Comment