Anypoint Best Practices

(14 reviews)

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

Constraint

Type: Declarative Validation

Reviews

TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 11, 2023
Asset overview

Asset versions for 1.6.x

Asset versions
VersionActions
1.6.1
1.6.0

Tags