India的日期格式
भारत
India使用的日期格式
DD/MM/YYYY
示例: 31/12/2025
其他使用的格式:
DD/MM/YYYY
DD-MM-YYYY
India的今日日期
31/12/2026
格式详情
| 主要格式 | DD/MM/YYYY |
| 分隔符 | / |
| 区域代码 | en-IN |
| 日历系统 | Gregorian (also Saka calendar) |
在代码中为India格式化日期
JavaScript
const date = new Date();
// India格式
const formatted = date.toLocaleDateString('en-IN');
console.log(formatted); // 31/12/2026
Python
from datetime import datetime
import locale
# India格式
locale.setlocale(locale.LC_TIME, 'en_IN')
date = datetime.now()
formatted = date.strftime('%d/%m/%Y')
print(formatted) # 31/12/2026