I wonder if it would be valuable to introduce a new lib stripes-utils where we could start collecting those little reusable functions.
Or stash things of this nature inside stripes-components/util/. Either way, I agree that formatting functions such as these should be defined in one place only.
Michal KuklisDecember 6, 2017 at 1:42 PM
Sound good Zak.
FYI I plan to use the formatDate and formatTime functions exposed by react-intl https://github.com/yahoo/react-intl/wiki/API#date-formatting-apis instead of the <FormattedDate> and <FormattedTime> components because they are less verbose. There is also no formatDateTime so I probably will end up keeping it in the utils and just use react-intl formatDate and formatTime inside. I wonder if it would be valuable to introduce a new lib stripes-utils where we could start collecting those little reusable functions.
Zak BurkeDecember 6, 2017 at 1:32 PM
Closing STCOR-109 in favor of this since it's all that's left.
This is a continuation of work described by in STCOR-109.