Axis2 - Date Format

后端 未结 4 1549
小蘑菇
小蘑菇 2021-02-06 05:00

Scenario

The date format which is output as a response to the Web Service client by Axis2 is formatted as \"2009-08-28+01:00\". I would like to change this to show on

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 05:41

    You can't.

    Its value space is described as a combination of date and time of day in Chapter 5.4 of ISO 8601. Its lexical space is the extended format:

    [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]

    The time zone may be specified as Z (UTC) or (+|-)hh:mm. Time zones that aren't specified are considered undetermined.

    http://books.xmlschemata.org/relaxng/ch19-77049.html

    Edit:

    For reference see XML Schema Part 2: Datatypes Second Edition 3.2.7 dateTime

提交回复
热议问题