Has anyone made any code for the calendar to be a year only picker?

I dont need date and month just year

Anyhelp or links to previous posts i might have missed would be great

Thanks
John