15 · 2026
อ่านจำนวนเงิน & วันที่ไทยThai Baht Text & Dates
แปลงตัวเลขเป็นคำอ่านเงินบาทแบบ BAHTTEXT และภาษาอังกฤษสำหรับใบเสร็จ/ใบแจ้งหนี้ แปลงวันที่แบบไทย พ.ศ.↔ค.ศ. เลขไทย และนับวัน/คำนวณอายุBaht amounts in Thai words (like Excel BAHTTEXT) and English for invoices, Thai date formats, BE↔CE years, Thai numerals, and day/age counting.
// กฎ "เอ็ด": 1 ในหลักหน่วยเมื่อมีหลักที่สูงกว่าelse if (place === 0) out += d === 1 && (hasHigher || n > 9) ? "เอ็ด" : DIGITS[d];// 1,000,001 → หนึ่งล้านเอ็ดบาทถ้วนใช้ทำอะไร
- จำนวนเงินเป็นตัวหนังสือ: 15,999.95 → หนึ่งหมื่นห้าพันเก้าร้อยเก้าสิบเก้าบาทเก้าสิบห้าสตางค์ — สำหรับใบเสร็จ เช็ค สัญญา
- ภาษาอังกฤษสำหรับ invoice: "Fifteen thousand nine hundred and ninety-nine baht and ninety-five satang only"
- วันที่แบบไทย: แบบหนังสือราชการ แบบเต็ม แบบย่อ ตัวเลข และเลขไทย
- พ.ศ. ↔ ค.ศ., เลขไทย ↔ อารบิก, นับวัน/คำนวณอายุ เป็นปี เดือน วัน
- ทุกผลลัพธ์มีปุ่มคัดลอก
ความถูกต้อง
- ผลลัพธ์ตรงกับฟังก์ชัน BAHTTEXT ของ Excel — test 17 กรณี รวมกรณีที่มักผิด เช่น 101, 1,000,001 (หนึ่งล้านเอ็ด), 11,000,000, สตางค์ และการปัดเศษ
- รองรับหลักล้านล้าน
- นับเดือนแบบปฏิทินจริง (31 ม.ค. + 1 เดือน = 28/29 ก.พ.) และคิดปีอธิกสุรทิน
What it does
- Amounts in Thai words: 15,999.95 → หนึ่งหมื่นห้าพันเก้าร้อยเก้าสิบเก้าบาทเก้าสิบห้าสตางค์ — for receipts, cheques and contracts
- English for invoices: "Fifteen thousand nine hundred and ninety-nine baht and ninety-five satang only"
- Thai date formats: formal (government letters), long, short, numeric and Thai numerals
- BE ↔ CE years, Thai ↔ Arabic numerals, day and age counting in years, months and days
- One-click copy on every result
Correctness
- Output matches Excel's BAHTTEXT — 17 test cases including the usual trouble spots: 101, 1,000,001 (หนึ่งล้านเอ็ด), 11,000,000, satang and rounding
- Handles trillions (ล้านล้าน)
- Months are counted on the real calendar (31 Jan + 1 month = 28/29 Feb), leap years included