Data Reference Standard on Date and Time Format

1. Preamble

  • 1.1 This data reference standard is intended to ensure that departments and agencies use a consistent numeric format for date and time to enable the interchange of machine-readable data.
  • 1.2 This list is intended to standardize the way date and time are formatted in datasets to enable data interoperability and improve data quality.
  • 1.3 This data reference standard is based on the International Organization for Standardization (ISO) 8601 Date and time — Representations for Information Interchange.
    • 1.3.1 Appendix A outlines the required format that will be updated accordingly to include additional date and time formats.
    • 1.3.2 Appendix A is copied by Treasury Board of Canada Secretariat with the permission of the Standards Council of Canada (SCC) on behalf of ISO. The French translation of this standard is not official. The standard can be purchased from the national ISO member in your country or the ISO Store. Copyright remains with ISO.
  • 1.4 This data reference standard will be reviewed as required by the data reference standard steward in consultation with the data reference standard custodian.
    • 1.4.1 Data reference standard steward: National Research Council Canada
    • 1.4.2 Data reference standard custodian: Treasury Board of Canada Secretariat

2. Effective date

  • 2.1 This data reference standard takes effect on September 27, 2024.

3. Requirements

  • 3.1 This data reference standard provides details on the requirements set out in subsection 4.3.1 of the Directive on Service and Digital.
  • 3.2 Service owners and data practitioners must:
    • 3.2.1 apply the required format (Appendix A) to format date and time in datasets to the extent that they can.

4. Application

  • 4.1 This data reference standard applies to organizations listed in section 6 of the Directive on Service and Digital.
  • 4.2 This data reference standard applies to all datasets and systems developed after the effective date of this data reference standard.

5. References

6. Enquiries

Appendix A: date and time format requirement

This section is reproduced from ISO 8601-1:2019 Date and time – Representations for information interchange Part 1: Basic Rules sections 5.2.2.1, 5.2.3.1, 5.3.1.2, 5.3.4.1 and 5.3.4.2 and reorganized under Appendix A.

A.1 Date sequence

  • A.1.1 An all-numeric date consists of the following data elements from left to right:
    • A.1.1.1 (Calendar) year-month-day
    • A.1.1.2 (Ordinal) year-day of year

A.2 Characters

  • A.1.2.1 Arabic numerals from set 0, 1, 2, ... 9 are used.

A.3 Date elements

  • A.3.1 A calendar date consists of three elements:
    • A.3.1.1 four digits to represent “year”
    • A.3.1.2 two digits to represent “month”
    • A.3.1.3 two digits to represent “day”
  • A.3.2 An ordinal date consists of two elements:
    • A.3.2.1 four digits to represent “year”
    • A.3.2.2 three digits to represent “day of the year”

A.4 Date separators

  • A.4.1 A hyphen “-” is to be used as a delimitator, when required.

A.5 Time elements

  • A.5.1 An all-numeric time consists of the following time elements from left to right:
    • A.5.1.1 Two digits between 00 and 23 to represent “hour”
    • A.5.1.2 Two digits between 00 and 59 to represent “minute”
    • A.5.1.3 Two digits between 00 and 59 to represent “second”
  • A.5.2 If a time zone is needed for the recording of time, the offset from the UTC standard consists of:
    • A.5.2.1 A “+” if the time zone comes before UTC
    • A.5.2.2 A “–” if the time zone is after UTC (all of Canada is after UTC)
    • A.5.2.3 Two digits to represent “hour”
    • A.5.2.4 Two digits to represent “minute”

A.6 Time separators

  • A.6.1 A colon “:” is to be used as a delimitator. If it is not used, then a capital “T” shall be inserted at the beginning of the string.

Page details

Date modified: