You can configure the format for dates that are returned by the REST Web Services interface. It will return dates in one of the following formats:
A string representation of a Java Date object (default)
MM/dd/yyyy HH:mm:ss z
For example: 01/29/2011 11:11:11 PDT
To control which date format will be returned, set the enableFormatDateOutput
property of the /atg/rest/output/JSONOutputCustomizer
or /atg/rest/output/XMLOutputCustomizer
components.
Set
enableFormatDateOutput
to true to receive the date and time inMM/dd/yyyy HH:mm:ss z
format.Set
enableFormatDateOutput
tofalse
to receive the string representation of theDate
object.
Note: The return depth for a REST request may cause a date property to be expanded. If a date property is expanded, it will not be in either of the formats described in this section but will be a set of properties that make up the date. See Return Depth. If you do not want to expand date properties, you can suppress property expansion for them. See Suppressing Property Expansion.