icgc-argo / dac-ui

Development of the ICGC ARGO Data Access Control UI
https://daco.icgc-argo.org/
GNU Affero General Public License v3.0
0 stars 0 forks source link

♻️ Refactor date formatters #658

Closed anncatton closed 1 year ago

anncatton commented 1 year ago

Reorganize date format constants into enums, add to global/dates folder. Move getFormattedDate helper func to global/dates folder. Add error clause. Replace most date-fns/format calls with helper func. Does not modify/remove DateFormat string options, should discuss whether any of these can be pruned first.