mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-15 15:10:30 -08:00
Add new date format tokens for weekday number
See https://en.wikipedia.org/wiki/ISO_8601#Week_dates
This commit is contained in:
parent
1491339f50
commit
f70cee6907
2 changed files with 5 additions and 1 deletions
|
|
@ -383,6 +383,9 @@ exports.formatDateString = function(date,template) {
|
|||
[/^0WW/, function() {
|
||||
return $tw.utils.pad($tw.utils.getWeek(date));
|
||||
}],
|
||||
[/^dddd/, function() {
|
||||
return [7,1,2,3,4,5,6][date.getDay()];
|
||||
}],
|
||||
[/^ddd/, function() {
|
||||
return $tw.language.getString("Date/Short/Day/" + date.getDay());
|
||||
}],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue