83
rated 0 times
[
86]
[
3]
/ answers: 1 / hits: 47392
/ 8 Years ago, tue, november 22, 2016, 12:00:00
I have an object with a production_date
which I'm trying to extract year and month but I keep getting getMonth()
and getYear()
is not a function error...
function(d) {
var dt = d.production_date
var dtm = dt.getMonth();
var dty = dt.getYear();
return dtm + / + dty
}
More From » javascript