converting date from a timezone to UTC XSLT 1.0

戏子无情 提交于 2021-01-07 01:23:56

问题


How can I format the below XML date element in XSLT version1.0 ? The GenerationTime has to be formatted in pattern yyyy-MM-dd'T'HH:mm:ss in the output XML with the date value in UTC.

xslt processer used is xalan

<Values>
  <value name="cardGenerated">yes</value> 
  <value name="GenerationTime">Tue Dec 29 14:32:53 EST 2020</value>
<Values>

the output would look like

 <Values>
  <value name="cardGenerated">yes</value> 
  <value name="GenerationTime">2020-12-19T19:32:53Z</value>
<Values>

来源:https://stackoverflow.com/questions/65518537/converting-date-from-a-timezone-to-utc-xslt-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!