Forum Stats

  • 3,722,193 Users
  • 2,244,247 Discussions
  • 7,849,699 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Processing Dates through XSLT files

User_HSFZQ
User_HSFZQ Member Posts: 1 Red Ribbon
edited December 2020 in Java Technology & XML


I am new to xslt files. This is the first one i have written. I am trying to read in a datetime field, requestedDeliveryDate, from the xml file. Currently, I am trying to read it into the comment field. (debugging)

When I post the order I get a java null pointer.

If I hard code the value "2020-11-21 00:00:00.0 CST this works.

What am I doing wrong with the following command:

<xsl:value-of select="format-dateTime(MagentoOrderDetails/requestedDeliveryDate,'[Y0001]-[M01-[D01] [H01]:[m01]:[s01]'"/>

I am trying to format the date such that Java can read it as a datetime value.

Any help would be appreciate,

Steve Nelligan

Sign In or Register to comment.