So, I have a line of code:
endYear = new Date(job['end_date']).getFullYear();
where job['end_date']
evaluates to 'Dec 2015'
.
In Chrome, Opera and Edge, this evaluates to 2015
. In FireFox (both regular and develop edition), it evaluates to NaN
.
What am I doing wrongly?