简体   繁体   English

如何将xs:date转换为xs:dateTime tibco

[英]How to convert xs:date to xs:dateTime tibco

In my application, there is the following case:I have a "xs:date" and I need to convert it to "xs:dateTime". 在我的应用程序中,有以下情况:我有一个“ xs:date”,我需要将其转换为“ xs:dateTime”。 I tried tib:format-dateTime("EEE MMM dd zzz yyyy",concat($Variable0/root/param,'00:00:00')) but it doesn't work. 我尝试了tib:format-dateTime("EEE MMM dd zzz yyyy",concat($Variable0/root/param,'00:00:00'))但是它不起作用。 How can write the xpath? 怎么写xpath?

You can use just xsd:dateTime() function : xs:dateTime($Variable0/root/param) 您可以只使用xsd:dateTime()函数: xs:dateTime($Variable0/root/param)

If param type is xsd:date , it will work and the output will be xs:dateTime type. 如果param类型为xsd:date ,它将起作用,并且输出将为xs:dateTime类型。

I'm using Tibco BW6.X and it works for me. 我正在使用Tibco BW6.X,它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM