次の xsd を持つ xml ノードの 1 つで、文字列を日付に変換する必要があります。
<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>
誰でも私を助けることができますか?