mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-25 14:18:53 -05:00
refactoring of script subtree execution
This commit is contained in:
@@ -61,6 +61,10 @@ function formatDate(date) {
|
||||
return padNum(date.getDate()) + ". " + padNum(date.getMonth() + 1) + ". " + date.getFullYear();
|
||||
}
|
||||
|
||||
function formatDateISO(date) {
|
||||
return date.getFullYear() + "-" + padNum(date.getMonth() + 1) + "-" + padNum(date.getDate());
|
||||
}
|
||||
|
||||
function formatDateTime(date) {
|
||||
return formatDate(date) + " " + formatTime(date);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user