I have datetime as string, fxp:
2014-11-10 12:12
And I need create from this string Date object with correctly set months (in object months starting from 0).
So i tried this:
var d = Date.parse("2014-11-10 12:12");
But it seems to be not working.
console.log("Month is " + d.getMonth());
Is not giving result.
How can i parse and create date object from string correctly?
Thanks for any help.