Changed year(x::DateTime) to match month() and day() using partial aglorithm from _day2date(). This speeds it up because we avoid having to allocate a Date object