date

The date type represents a date. The data refers to a date in Gregorian calendar, and takes the YYYY-MM-DD format. So, May 16th, 2005 would be

2005-05-16

The constraining attributes you can use with date also are similar to those of decimal:

  • minInclusive

  • maxInclusive

  • minExclusive

  • maxExclusive

Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.