{"action":"created","issue":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/1449","labels_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/1449/comments","events_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/1449/events","html_url":"https://github.com/Jermolene/TiddlyWiki5/issues/1449","id":56226760,"number":1449,"title":"date picker / date filters / typed fields","user":{"login":"tobibeer","id":97566,"avatar_url":"https://avatars.githubusercontent.com/u/97566?v=3","gravatar_id":"","url":"https://api.github.com/users/tobibeer","html_url":"https://github.com/tobibeer","followers_url":"https://api.github.com/users/tobibeer/followers","following_url":"https://api.github.com/users/tobibeer/following{/other_user}","gists_url":"https://api.github.com/users/tobibeer/gists{/gist_id}","starred_url":"https://api.github.com/users/tobibeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobibeer/subscriptions","organizations_url":"https://api.github.com/users/tobibeer/orgs","repos_url":"https://api.github.com/users/tobibeer/repos","events_url":"https://api.github.com/users/tobibeer/events{/privacy}","received_events_url":"https://api.github.com/users/tobibeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T11:47:51Z","updated_at":"2015-02-02T14:58:57Z","closed_at":null,"body":"Being a journal is a core aspect of TiddlyWiki. Maybe plugin territory, to facilitate working with journals and dates, provide the following modules...\r\n\r\n### Date Picker\r\n\r\nImplement a date(-time-picker for fields whose type is set to date(-time). Requires an ability to declare typed fields. Rather than adapt anything, perhaps build a basic calendar widget that can be used as a datepicker, e.g. via link-catcher, with (optional) controls to move through the months or clicking the year / month to edit and go to.\r\n\r\n### Date Filters\r\n\r\n**date**\r\n\r\n* `<$list filter=\"[date:journaldate[201501]]\"/>`\r\n    * returns all tiddlers where the field **journaldate** is set to January 2015\r\n* `<$list filter=\"[date:journaldate[20150101]]\"/>`\r\n    * returns all tiddlers where the field **journaldate** is set to 01. January 2015\r\n\r\n**week**\r\n\r\n* `[week:1:1:BLANKS[201501]]`\r\n    * returns a list of all days of the...\r\n        * first week (1st suffix)\r\n            * optional, default: 1\r\n        * starting monday (2nd suffix)\r\n            * optional, default: 1= monday (0 is sunday)\r\n        * returning blanks (3rd suffix)\r\n            * optional, default: `<no blanks>`\r\n            * for any days that are actually not part of that month, return blanks `\"\"`\r\n            * this is optional as you may want blanks in a calendar showing weeks\r\n            * if blanks are not possible, return something like `NONE`\r\n        * for January 2015 (operand)\r\n\r\n**weeks**\r\n\r\n* `[weeks[201501]]`\r\n    * returns a list of the week numbers of January 2015\r\n\r\n### Example Month Calendar\r\n\r\n```\r\n<table>\r\n<tr>\r\n<$list filter=\"Week Mo Tue Wed Thu Fr Sa Sun\">\r\n<th><currentTiddler></th>\r\n</$list>\r\n</tr>\r\n<$list filter=\"[weeks[201501]]\" variable=\"week\">\r\n<tr>\r\n<th>\r\n<<week>>\r\n</th>\r\n<$list filter=\"[week:1:1:BLANKS[201501]]\" variable=\"weekday_date\">\r\n<td>\r\n<$list filter=\"[date<weekday_date>]\"/>\r\n</td>\r\n</$list>\r\n</tr>\r\n</$list>\r\n```"},"comment":{"url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/comments/72470582","html_url":"https://github.com/Jermolene/TiddlyWiki5/issues/1449#issuecomment-72470582","issue_url":"https://api.github.com/repos/Jermolene/TiddlyWiki5/issues/1449","id":72470582,"user":{"login":"pmario","id":374655,"avatar_url":"https://avatars.githubusercontent.com/u/374655?v=3","gravatar_id":"","url":"https://api.github.com/users/pmario","html_url":"https://github.com/pmario","followers_url":"https://api.github.com/users/pmario/followers","following_url":"https://api.github.com/users/pmario/following{/other_user}","gists_url":"https://api.github.com/users/pmario/gists{/gist_id}","starred_url":"https://api.github.com/users/pmario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmario/subscriptions","organizations_url":"https://api.github.com/users/pmario/orgs","repos_url":"https://api.github.com/users/pmario/repos","events_url":"https://api.github.com/users/pmario/events{/privacy}","received_events_url":"https://api.github.com/users/pmario/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T14:58:57Z","updated_at":"2015-02-02T14:58:57Z","body":"`<$list filter=\"Week Mo Tue Wed Thu Fr Sa Sun\">`\r\n\r\nneeds to be translatable\r\n"}}