Better file names
This commit is contained in:
parent
a0a604618c
commit
80c0ad82fc
4 changed files with 66 additions and 31 deletions
|
@ -136,3 +136,19 @@ export function wantsDateSeparator(prevEventDate: Date, nextEventDate: Date): bo
|
|||
// Compare weekdays
|
||||
return prevEventDate.getDay() !== nextEventDate.getDay();
|
||||
}
|
||||
|
||||
|
||||
export function formatFullDateNoDayNoTime(date: Date) {
|
||||
const dateTime = date.getFullYear() +
|
||||
"-" +
|
||||
pad(date.getMonth()) +
|
||||
"-" +
|
||||
pad(date.getDate()) +
|
||||
_t(" at ") +
|
||||
pad(date.getHours()) +
|
||||
"." +
|
||||
pad(date.getMinutes()) +
|
||||
"." +
|
||||
pad(date.getSeconds());
|
||||
return dateTime;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue