No, javascript’s Date
months start with 0
, so 9
is a 10th month and it is October
new Date(year, month [, day, hour, minute, second, millisecond]);
[…]
month
Integer value representing the month, beginning with 0 for January to 11 for December.
More Related Contents:
- How do I check if an array includes a value in JavaScript?
- How do you get a timestamp in JavaScript?
- Why do you need to invoke an anonymous function on the same line?
- Full-screen iframe with a height of 100%
- What is the most efficient way to create HTML elements using jQuery?
- Unexpected token colon JSON after jQuery.ajax#get
- After travelling back in Firefox history, JavaScript won’t run
- Remove last item from array
- Coordinating parallel execution in node.js
- How to perform case-insensitive sorting array of string in JavaScript?
- Why is it bad practice to use links with the javascript: “protocol”?
- Switch on ranges of integers in JavaScript [duplicate]
- Is $(document).ready() also CSS ready?
- Wrapping lines/polygons across the antimeridian in Leaflet.js
- Better way to get type of a Javascript variable?
- Using JavaScript to perform text matches with/without accented characters
- Throttle event calls in jQuery
- How to convert Persian and Arabic digits of a string to English using JavaScript?
- Setting innerHTML: Why won’t it update the DOM?
- Instagram ?__a=1 url not working anymore & problems with graphql/query to get data
- jQuery get the location of an element relative to window
- console.log.apply not working in IE9
- Dynamic form name attribute in Angularjs
- body data not sent in axios request
- D3 – how to deal with JSON data structures?
- What’s the difference between window.location and document.location?
- Understanding Event Queue and Call stack in javascript
- jQuery x y document coordinates of DOM object
- black and white text based on background image with css
- Lodash create collection from duplicate object keys