Anypoint Best Practices
date-time-representation
general > date-time-representation
Guidance / Message
Field '{{shacl.name}}' should use the following ISO8601 standard date-time formats for timestaps encoding properties:
- UTC
- 2016-10-27T13:42:21+00:00 (+00:00 is the time zone offset)
- 2016-10-27T13:42:21Z (Z is a place holder for local time zone)
Examples
valid
createdAt:
type: datetime
example: 2016-02-28T16:41:41.090Z
format: rfc3339 # the default, so needn't be specified
invalid
updatedAt:
type: datetime
example: Sun, 28 Feb 2016 16:41:41 GMT
format: rfc2616
Applies to ScalarShape