Recommended way should be to rely natively available formatters, toISOString for programmatically consumable formatting and toLocaleString for human readable format.
Any other custom handling should not be encouraged and if for some reason needed, handled by external libraries as dateformat
Recommended way should be to rely natively available formatters,
toISOString
for programmatically consumable formatting andtoLocaleString
for human readable format.Any other custom handling should not be encouraged and if for some reason needed, handled by external libraries as
dateformat