Fetch all Years between two dates

I have a Data Source Table called as EmployeeDetails with column names as: Employee Name, Address, Phone and DateOfJoining.

Users can fetch all the Years between two given dates using Sequence function.

Code for Items property of Combo Box. You can use this in List Box or DropDown as well.