In Javascript console when running new Date()
it returns something like:
Wed Jan 13 2021 18:30:00 GMT+0000 (Greenwich Mean Time)
but in node.js it returns:
2021-01-13T18:32:21.182Z
So my question is, how in node.js would I get time in the format of the browser? Is the only way to format it like in this question?