# Replace hyphen with en-dash only after 4-digit years

**URL:** <https://community.mp3tag.de/t/replace-hyphen-with-en-dash-only-after-4-digit-years/50381>\
**Category:** Support\
**Created:** [October 6, 2020, 12:17am UTC](https://community.mp3tag.de/t/replace-hyphen-with-en-dash-only-after-4-digit-years/50381 "2020-10-06T00:17:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [October 7, 2020, 6:03pm UTC](https://community.mp3tag.de/t/replace-hyphen-with-en-dash-only-after-4-digit-years/50381/6 "2020-10-07T18:03:26Z")

</div>

The examples can be found here in the forum, e.g. here:

> [@Help with an action to change two-digit years to four-digit years](https://community.mp3tag.de/t/help-with-an-action-to-change-two-digit-years-to-four-digit-years/18640):
>
> Can anyone help me with an action that will look at the year, determine if it's four or two digits, and if it's two digits, prepend "19" to those digits. I need four digit years to remain in place unaltered. I figured out how to write the year to a custom field, prepend the "19" and then write that back to the year field. That doesn't work because my four digit years wind up being six digit years such as "192017". Any help is appreciated.

I found this thread with the search words "digit year".

---

_[View the full topic](https://community.mp3tag.de/t/replace-hyphen-with-en-dash-only-after-4-digit-years/50381)._
