---
title: "Discussion on \"MRZ dates have no century: reading YYMMDD without year-2000 bugs\" | Hashnode"
description: "Discussion on \"MRZ dates have no century: reading YYMMDD without year-2000 bugs\". MRZ dates are YYMMDD with no century. The rule for birth and expiry dates, the 29 February trap, and Python and JavaScript code with test vectors."
url: "https://hashnode.com/posts/mrz-dates-have-no-century-reading-yymmdd-without-year-2000-bugs/6ad573fb39cde4bbff5995c6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [MRZ dates have no century: reading YYMMDD without year-2000 bugs](https://doccheap.hashnode.dev/mrz-dates-have-no-century-reading-yymmdd-without-year-2000-bugs?utm_source=hashnode&utm_medium=feed)

MRZ dates are YYMMDD with no century. The rule for birth and expiry dates, the 29 February trap, and Python and JavaScript code with test vectors.

Oct 19 · 7 min read · doccheap.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#testing](https://hashnode.com/tag/testing)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Teoh Chin Heng](https://hashnode.com/@doccheap)

@doccheap

  
[View profile](https://hashnode.com/@doccheap)

Passport and ID card OCR API. Free – 100 documents every month, then 1¢ each

doc.cheap reads passports, ID cards and driver's licences from a photo and returns JSON in one HTTP call. Free – 100 documents every month, then 1¢ per recognised document; failed scans are free. Try it with the public sandbox key sk\_sandbox\_public, no signup. There is also an MCP server for agents: https://doc.cheap/mcp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
