Improved code MMY Task(Convert the datatype of year)