Im iterating everydate on my datepicker, and it seems really odd, but it returns "115" when I try to get the current year.
does it mean 2015 ? why the "1" ?
Thanks
Im iterating everydate on my datepicker, and it seems really odd, but it returns "115" when I try to get the current year.
does it mean 2015 ? why the "1" ?
Thanks
You need to get they year
using getFullYear()
. I guess you must be using getYear()
.