Added a method for getting year from the date.