xfire 时: Could not parse xs:dateTime: Format.parseObject(String) failed

来源:互联网 发布:linux echo的用法 编辑:程序博客网 时间:2024/05/17 06:42

在使用xfire时,使用soapUI遇到date 格式的数据

传入的格式应该为:2004-01-14T03:12:07-03:00


代码为:

import org.codehaus.xfire.util.date.XsDateTimeFormat;

private static XsDateTimeFormat format = new XsDateTimeFormat();

Calendar c = (Calendar) format.parseObject(source);

0 0
原创粉丝点击