UK Government Data Standards Catalogue

Metadata Value
Data Element

Year and Month

Is Part Of
Temporal
Has Parts  
Version 1.0 
Status Release 
Previous Versions  
Later Versions  
Date Agreed 23 November 2004

Back to table of contents

Name

Year and Month

Description The year and month of an event.
Business Format YYYY-MM (eg 1997-07)
Element Type Data Type
XML Schema
Validation
Values less than 10 in the month or year elements should be entered with a zero in the first position.
Values
YYYY = four-digit year
MM = two-digit month (01=January, etc.)
DefaultValue
Owner W3C
Based On W3C Date and Time Formats, 15 September 1997.
Verification
Comments
  • For further information see http://www.w3.org/TR/NOTE-datetime
  • This is a reduced precision date. If compared with a greater prescision date such as YYYY-MM-DD, the result should be the difference in months without any rounding.
  • Use xs:gYearMonth for XML Schemas.