# Wie kann ich das Year-Feld einheitlich formatierien?

**URL:** https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002
**Category:** Allgemein
**Created:** [January 2, 2008, 1:12pm UTC](https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002 "2008-01-02T13:12:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Capricorn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@Capricorn](https://community.mp3tag.de/u/Capricorn)
#### Post date: [January 2, 2008, 1:12pm UTC](https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002/1 "2008-01-02T13:12:24Z")

</div>

Hallo zusammen,

mein Problem ist folgendes: Ich verwende zum internetgestützten Taggen MusicBrainz. Dabei entsteht standardmäßig im YEAR-Tag ein Eintrag im Format "YYYY-MM-DD".

Wie kann ich mit einer "Aktion" alle YEAR-Tags abfragen und auf das gewünschte Format "YYYY" zurücksetzen? Und geht das dann auch für Tags, die von MusicBrainz im noch unglücklicheren Format "YYYY--" geliefert werden (hier liegen Monat und Tag nicht vor)?

Vielen Dank für eure Hilfe

Gruß

Martin

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 2, 2008, 2:17pm UTC](https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002/2 "2008-01-02T14:17:54Z")

</div>

_Aktionstyp:_ **Ersetzen mit regulären Ausdrücken**  
_Feld:_ **YEAR**  
_Regulärer Ausdruck:_ **^(\d{4}).+$**  
_Treffer ersetzen durch:_ **$1**

---

<div class="post-metadata">

### Author: ![Capricorn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@Capricorn](https://community.mp3tag.de/u/Capricorn)
#### Post date: [January 2, 2008, 3:00pm UTC](https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002/3 "2008-01-02T15:00:11Z")

</div>

Danke!!! Das funzzt perfekt.

Gruß

Martin

---

<div class="post-metadata">

### Author: ![heisubo](https://community.mp3tag.de/user_avatar/community.mp3tag.de/heisubo/32/218_2.png) [@heisubo](https://community.mp3tag.de/u/heisubo)
#### Post date: [January 7, 2008, 12:23am UTC](https://community.mp3tag.de/t/wie-kann-ich-das-year-feld-einheitlich-formatierien/6002/4 "2008-01-07T00:23:07Z")

</div>

Du könntest aber auch das Feld %year% so belassen und stattdessen nur den Export auf 4 Stellen begrenzen, z. B. ...\%artist%$num(%year%,4) - %album%$num(%track%,2). %title%
