I got a function with which I want to sort the blog posts after month.
function sortBlogPostsAfterMonth(blogData) {
console.log(blogData[0].createdAt);
var blogDateFormat = new Date(blogData[0].createdAt);
console.log(blogDateFormat.getMonth());
}
the output in the console in the browser is this.
2013-11-24T11:32:29.023Z main.js:140
10
Why I get as month 10 and not 11?
Nice greetings