I'm using the javascript Date()
function to work with dates.
I have the following:
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
console.log(y);
console.log(m);
console.log(d);
This returns, in the console:
2013
9
1
Which correct me If I'm wrong, is 1 month behind the actual date of today.
I'm in the UK, so could BST be affecting the outcome of this?
Thanks