# Year tag manipulation

**URL:** https://community.mp3tag.de/t/year-tag-manipulation/66393
**Category:** Support
**Created:** [November 1, 2024, 4:16pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393 "2024-11-01T16:16:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lordlance](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@lordlance](https://community.mp3tag.de/u/lordlance)
#### Post date: [November 1, 2024, 4:16pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/1 "2024-11-01T16:16:31Z")

</div>

Hello I want to know specifically how to rename title and filenames with my requirement:

1. I set year in `yyy-mm-dd` format for all files.
2. I then wish to rename my filenames and titles in the format of `%title% (dd-mm-yyyy)`

---

<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: [November 1, 2024, 4:59pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/2 "2024-11-01T16:59:33Z")

</div>

To transform

> [@lordlance](#):
>
> `yyy-mm-dd`

into

> [@lordlance](#):
>
> dd-mm-yyyy

try `$regexp(%year%,(\d+)-(\d+)-(\d+),$3-$2-$1)`

Please note: by the definition in the ID3 standard, YEAR has only 4 digits.  
If you want to use a longer date, RELEASETIME could be a valid alternative.

---

<div class="post-metadata">

### Author: ![lordlance](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@lordlance](https://community.mp3tag.de/u/lordlance)
#### Post date: [November 1, 2024, 5:11pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/3 "2024-11-01T17:11:33Z")

</div>

I don't want to change the formatting of the year tag. I want to extract the 3 components of the year tag and append them in a different format for title and file 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: [November 1, 2024, 5:13pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/4 "2024-11-01T17:13:27Z")

</div>

> [@lordlance](#):
>
> I want to extract the 3 components of the year tag and append them in a different format for title and file name.

Yes. And in the format string with which you modify title and filename, you use my suggestion instead of the plain %year%.

---

<div class="post-metadata">

### Author: ![lordlance](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@lordlance](https://community.mp3tag.de/u/lordlance)
#### Post date: [November 1, 2024, 5:27pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/5 "2024-11-01T17:27:16Z")

</div>

Ok but then I can't retain old title. I want to append title with the regex.

---

<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: [November 1, 2024, 5:48pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/6 "2024-11-01T17:48:30Z")

</div>

> [@lordlance](#):
>
> want to append title

See the FAQs:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/5):
>
> How to append the string " xyz" to the content of a tag field? Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group and choose Format value as action type. Field specifies the tag field the formatting rule should be applied to. Format string must have the field placeholder for the field selected above and the string which should be appended. Example: If you want to append the string " xyz" to the current value of the comment field: Action type: Format value Field: COMMENT Format string: %com…

---

<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: [December 1, 2024, 5:49pm UTC](https://community.mp3tag.de/t/year-tag-manipulation/66393/7 "2024-12-01T17:49:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
