Note: This method is automatically called by JavaScript whenever a Date object needs to be displayed as a string. Let’s meet a new built-in object: Date. So I wonder: What is the idiomatic way of representing dates and times in JavaScript code that uses Moment.js? Using Date() JavaScript Tutorial: JavaScript Strings Based on rfc7231 and modified according to ecma-262 toUTCString , it can have negative values in the 2021 version The source for this interactive example is stored in a GitHub repository. This method was standardized in ECMA-262 5th edition. A time of day has no date or time zone attached to it. If you don’t intend to support