From 8347d56113ad19e85a697af038a453e910eea935 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 15 Sep 2020 15:00:30 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 077925fa..ed0814a5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,6 +4,18 @@ todo: date / time formating in report ad-hoc + Might still be able to use the built in Intl formatter since they have many options: + https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString + https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString + https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString + + Make copy of date and time helpers into report showing use of options to generate long and short date time, 2digit etc + Perhaps this is a situation served best by either a set of stock helpers like a LONG date helper + or maybe just user custom helpers if they want full control? + + Also as an aside there is a relative time formatter available which might be handy + https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat + https://momentjs.com/docs/#/-project-status/ TODO: Report confirmation checklist