【发布时间】:2011-08-15 10:17:47
【问题描述】:
我需要将字符串转换为其中一个 xml 节点上的日期 其中有以下xsd:
<xs:element minOccurs="0" name="executionDate" type="general:ShortDate"/>
我的字符串格式为 yyyymmdd,我需要将其转换为 ddmmyyyy shortDate 格式。
我正在使用 OSB 并尝试按以下方式进行操作:
{xs:dateTime(xs:date('20041212'))}
我收到以下错误:
<con:reason xmlns:con="http://www.bea.com/wli/sb/context">OSB Insert action failed updating variable "body": {err}XP0021: "20041212": can not cast to {http://www.w3.org/2001/XMLSchema}date: error: date: Invalid date value: wrong type: 20041212</con:reason>
谁能帮帮我?
【问题讨论】: