Anypoint Best Practices

(14 reviews)

date-only-representation

general > date-only-representation


Guidance / Message

Use standard date formats: ISO8601 Use calendar date:
2016-10-27

Examples

valid

date:
  type: date
  example: "2016-10-27"
  description: The first date on which the payment will be sent

invalid

date:
type: string
example: "1994-11-05T08:15:30-05:00"
description: This is clearly not a date but a date time

Applies to ScalarShape

Constraint

Type: Rego 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