Format functions

The following format functions are supported:

  • Format-dateTime: Formats the given dateTime and returns a string.
  • Format-date: Formats the given date and returns a string.
  • Format-time: Formats the given time and returns a string.
  • Format-number: Formats the given number and returns a string. For detail on how to use the format-number function.

For a full description, see the XSL Transformation (XSLT) Version 2.0.

Input types

The following input types for date/time and format-number functions are supported:

Date/time functions

The following xsd and json input types are supported for format date/time functions:

  • XSD
    • xs:date
    • xs:dateTime
    • xs:time
  • JSON
    • String object having format:date property
    • String object having format:date-time property
    • String object having format:time property

Format-number functions

The following xsd and json input types are supported for format-number functions:

  • XSD
    • byte
    • decimal
    • int
    • integer
    • long
    • negativeInteger
    • nonNegativeInteger
    • nonPositiveInteger
    • positiveInteger
    • short
    • unsignedLong
    • unsignedint
    • unsignedShort
    • unsignedByte
    • float
    • double
  • JSON
    • integer
    • number

 

Related Links