I need to select appropriate date/time format depending on the date range I am working with. The date range could be a few weeks, days, hours, seconds (even milliseconds).
I've looked into moment.js and format.js but I'm hoping there's something better out there. I want to achieve something like highcharts daterange. These charts select appropriate formats for the datetime axis according to the range.
Any help would be appreciated.
Try this below code, it is still rough:
Thank you,