https://koha-community.org/manual//23.05/en/html/administration.html#editing-a-marc-subfield <<YY>> can be used for automatically adding a 2 digit year to a catalouging record. The variable is missing from the list in the manual as it was added later.
Added to the manual