# Substitute YEAR tag

**URL:** <https://community.mp3tag.de/t/substitute-year-tag/48339>\
**Category:** Support\
**Created:** [March 28, 2020, 10:43am UTC](https://community.mp3tag.de/t/substitute-year-tag/48339 "2020-03-28T10:43:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Massimo\_Corso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@Massimo\_Corso](https://community.mp3tag.de/u/Massimo_Corso)\
**Post date:** [March 28, 2020, 10:43am UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/1 "2020-03-28T10:43:17Z")

</div>

Hi,  
I have all my music folders named as YEAR - Album Title like 2020 - Gigaton.  
But the YEAR tag of the file is like YY/MM/DD.  
I would like to substitute al YEAR tag with only the first 4 characters of the folder name.  
Can you explain me how?  
Thanks, Massimo

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 28, 2020, 11:15am UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/2 "2020-03-28T11:15:18Z")

</div>

Use Convert\>Filename - Tag  
Format string: `%year% - %dummy%\%dummy%`

---

<div class="post-metadata">

**Author:** ![Massimo\_Corso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@Massimo\_Corso](https://community.mp3tag.de/u/Massimo_Corso)\
**Post date:** [March 28, 2020, 11:59am UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/3 "2020-03-28T11:59:36Z")

</div>

Sorry but I can't understand how it can automatically know that I want only the first 4 characters of the folder name

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 28, 2020, 1:39pm UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/4 "2020-03-28T13:39:32Z")

</div>

> [@Massimo\_Corso](#):
>
> automatically know that I want only the first 4 characters of the folder name

It doesn't.  
It takes a pattern: in

> [@Massimo\_Corso](#):
>
> 2020 - Gigaton\filename

you find this:  
everything up to "blank hyphen blank" put into YEAR then ignore the rest up to the slash and everything following the slash (in the filename).  
It is a pity that you did not simply try it.

---

<div class="post-metadata">

**Author:** ![Massimo\_Corso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@Massimo\_Corso](https://community.mp3tag.de/u/Massimo_Corso)\
**Post date:** [March 28, 2020, 2:06pm UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/5 "2020-03-28T14:06:26Z")

</div>

Thanks man...but it doesn't seems to work

 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/1c0993a346308c47cefdc7ac6517c626bfef0d42.png)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 28, 2020, 2:12pm UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/6 "2020-03-28T14:12:58Z")

</div>

The pattern has to match exactly the filename.  
It could be that the hypen is a special character.  
You could try to start in Convert\>Filename-Tag with a pattern like  
`%year%\%dummy%`  
To see the full foldername in YEAR.  
now edit it to `%year% %dummy%\%dummy%`  
and see if it helps.

---

<div class="post-metadata">

**Author:** ![Massimo\_Corso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@Massimo\_Corso](https://community.mp3tag.de/u/Massimo_Corso)\
**Post date:** [March 28, 2020, 2:16pm UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/7 "2020-03-28T14:16:43Z")

</div>

> [@ohrenkino](#):
>
> %year% %dummy%%dummy%

Yessssssssssssss! It works!  
Thanks, thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:28pm UTC](https://community.mp3tag.de/t/substitute-year-tag/48339/8 "2026-02-09T12:28:29Z")

</div>


