About 56,300 results
Open links in new tab
  1. JavaScript Dates - W3Schools

    2 days ago · When a date object is created, a number of methods allow you to operate on it. Date methods allow you to get and set the year, month, day, hour, minute, second, and millisecond of date …

  2. Date - JavaScript | MDN - MDN Web Docs

    JavaScript Date objects represent a single moment in time in a platform-independent format. Date objects encapsulate an integral number that represents milliseconds since the midnight at the …

  3. Date and time - The Modern JavaScript Tutorial

    Oct 14, 2022 · We can always create a date from a timestamp using new Date(timestamp) and convert the existing Date object to a timestamp using the date.getTime() method (see below).

  4. JavaScript Date - GeeksforGeeks

    Jul 11, 2025 · What is the JavaScript Date Object? In JavaScript, the Date object tracks time as the number of milliseconds since the Unix Epoch. You can create a Date object using the new Date () …

  5. Mastering JavaScript Date Objects: The 'new' Keyword Explained

    When you use the 'new' keyword in JavaScript, you are essentially creating a new instance of a constructor function or a built-in object. In the case of Date objects, using 'new Date ()' allows you to …

  6. A Complete Guide to Javascript Dates - JavaScript in Plain English

    Sep 27, 2025 · Why your JavaScript date is confusing and mostly off by 1 day. Let’s be honest, new Date() has confused all of us. It's time to finally understand what's going on under the hood so you …

  7. Date () constructor - JavaScript | MDN

    Dec 17, 1995 · When no parameters are provided, the newly-created Date object represents the current date and time as of the time of instantiation. The returned date's timestamp is the same as the …

  8. JavaScript new Date Method - W3Schools

    Example Create a new date object with the current date and time: // Create a Date const time = new Date (); Try it Yourself »

  9. JavaScript Date: Create, Convert, Compare Dates in JavaScript

    Feb 5, 2019 · Use the Date() function to get the string representation of the current date and time in JavaScript. Use the new keyword in JavaScript to get the Date object. Create a date object by …

  10. JavaScript Date Objects - W3Schools

    2 days ago · When a Date object is created, a number of methods allow you to operate on it. Date methods allow you to get and set the year, month, day, hour, minute, second, and millisecond of date …