{
  "id": "date_thai",
  "kind": "pattern",
  "status": "draft",
  "name": "Date with a Thai month name",
  "doc": "Calendar date written with the day, the Thai name or abbreviation of the month and the year, which is in the Buddhist era and has four or two digits: 24 กรกฎาคม 2566, 17 มิ.ย. 2556, 1-พ.ย.-65. Spreadsheets exported with a Thai locale write the short form with hyphens.",
  "semantic_type": "date",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "th"
  ],
  "regexp": "^(?:0?[1-9]|[12]\\d|3[01])[ -]?(?:มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม|ม\\.?ค\\.?|ก\\.?พ\\.?|มี\\.?ค\\.?|เม\\.?ย\\.?|พ\\.?ค\\.?|มิ\\.?ย\\.?|ก\\.?ค\\.?|ส\\.?ค\\.?|ก\\.?ย\\.?|ต\\.?ค\\.?|พ\\.?ย\\.?|ธ\\.?ค\\.?)[ -]?(?:\\d{2}|2[4-6]\\d{2})$",
  "examples": [
    {
      "value": "24 กรกฎาคม 2566",
      "description": "24 July 2023",
      "valid": true
    },
    {
      "value": "17 มิ.ย.2556",
      "description": "17 June 2013",
      "valid": true
    },
    {
      "value": "1-พ.ย.-65",
      "description": "1 November 2022 (2565), the short form of spreadsheets",
      "valid": true
    },
    {
      "value": "24 July 2023",
      "description": "an English month name",
      "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": "thdatethaivalue",
        "type": "data",
        "match": "func",
        "file": "th/th_datetime.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/date_thai.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/date_thai.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/date_thai.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/date_thai",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/date_thai.json"
  }
}