date format

This commit is contained in:
松浦 知也 Matsuura Tomoya 2024-01-29 15:46:30 +09:00
parent fcd2e6a2c9
commit 283664aab0

View File

@ -17,9 +17,9 @@ export function getDate(cfg: GlobalConfiguration, data: QuartzPluginData): Date
}
export function formatDate(d: Date): string {
return d.toLocaleDateString("en-US", {
return d.toLocaleDateString("ja-JP", {
year: "numeric",
month: "short",
month: "2-digit",
day: "2-digit",
})
}