รูปแบบวันที่ในSouth Korea
대한민국
รูปแบบวันที่ที่ใช้ในSouth Korea
YYYY.MM.DD
ตัวอย่าง: 2025.12.31
รูปแบบอื่นที่ใช้:
YYYY.MM.DD
YYYY년 MM월 DD일
วันนี้ในรูปแบบSouth Korea
2026.12.31
รายละเอียดรูปแบบ
| รูปแบบหลัก | YYYY.MM.DD |
| ตัวคั่น | . |
| รหัสภาษา | ko-KR |
| ระบบปฏิทิน | Gregorian |
จัดรูปแบบวันที่สำหรับSouth Koreaในโค้ด
JavaScript
const date = new Date();
// รูปแบบสำหรับSouth Korea
const formatted = date.toLocaleDateString('ko-KR');
console.log(formatted); // 2026.12.31
Python
from datetime import datetime
import locale
# รูปแบบสำหรับSouth Korea
locale.setlocale(locale.LC_TIME, 'ko_KR')
date = datetime.now()
formatted = date.strftime('%d.%m.%Y')
print(formatted) # 2026.12.31