添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I have a string column with "Thu Oct 02 07:50:43 CEST 2014". I need to parse this string to have a Date. The node String to Date/Time with EEE MMM dd HH:mm:ss zzz yyyy raise an error. I don't know why. A java snippet seem to works:

Calendar c = Calendar.getInstance();
c.setTime(new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy",Locale.ENGLISH).parse(c_Col0));
out_Col0 = c.getTime();
n.warn(out_Col0);

This code print Thu Oct 02 07:50:43 CEST 2014 but if i see the resulted table into the column there is 2014-10-02T05:50:43.0. Why?

Thanks

Thanks...but

if i use in input Thu Oct 02 07:50:43 2014 parsed with EEE MMM dd HH:mm:ss yyyy i got in output the same error: 2014-10-02T05:50:43.0.