{
  "id": "date_th_be",
  "kind": "pattern",
  "status": "draft",
  "name": "Date with a Thai Buddhist era year",
  "doc": "Calendar date written as day, month and year with the year in the Buddhist era (พ.ศ., the Gregorian year plus 543), as in 17/06/2567 for 17 June 2024. Thai government tables write dates of auctions, contracts and licences this way; a maturity date of a bond can lie decades ahead (17/06/2586).",
  "semantic_type": "date",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "country": [
    "TH"
  ],
  "langs": [
    "th"
  ],
  "regexp": "^(?:0?[1-9]|[12]\\d|3[01])[/.-](?:0?[1-9]|1[0-2])[/.-]2[4-6]\\d{2}$",
  "examples": [
    {
      "value": "17/06/2567",
      "description": "17 June 2024",
      "valid": true
    },
    {
      "value": "19/2/2563",
      "description": "19 February 2020, without leading zeros",
      "valid": true
    },
    {
      "value": "17/06/2586",
      "description": "17 June 2043, a bond maturity",
      "valid": true
    },
    {
      "value": "17/06/2024",
      "description": "a Gregorian year",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Thai_solar_calendar"
    }
  ],
  "translations": {
    "th": {
      "name": "วันที่ (พ.ศ.)"
    },
    "ru": {
      "name": "Дата с годом буддийской эры (Таиланд)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "thdatebevalue",
        "type": "data",
        "match": "regex",
        "file": "th/th_datetime.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/TH/datetime/date_th_be.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/TH/datetime/date_th_be.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/TH/datetime/date_th_be.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/date_th_be",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/date_th_be.json"
  }
}