mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-04 05:58:12 +00:00
9 lines
280 B
TypeScript
9 lines
280 B
TypeScript
const romanMonthDigits = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'];
|
|
|
|
export function parseTimetableRunDate(date: Date) {
|
|
return `${date.getDate()}.${romanMonthDigits[date.getMonth()]}.${date
|
|
.getFullYear()
|
|
.toString()
|
|
.slice(2)}`;
|
|
}
|