Forum Stats

  • 3,837,920 Users
  • 2,262,309 Discussions


Processing Dates through XSLT files

User_HSFZQ Member Posts: 1 Red Ribbon
edited Dec 16, 2020 4:26PM 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