# Help converting Year to a simpler format

**URL:** <https://community.mp3tag.de/t/help-converting-year-to-a-simpler-format/41180>\
**Category:** Support\
**Created:** [March 23, 2018, 10:31am UTC](https://community.mp3tag.de/t/help-converting-year-to-a-simpler-format/41180 "2018-03-23T10:31:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 23, 2018, 10:43am UTC](https://community.mp3tag.de/t/help-converting-year-to-a-simpler-format/41180/2 "2018-03-23T10:43:51Z")

</div>

see e.g.

> [@Trim %Year% if beyond 4 characters](https://community.mp3tag.de/t/trim-year-if-beyond-4-characters/14274):
>
> I have numerous files where the year is listed as "2012-12-27". I want to trim this to only show the actual 4 digit year - "2012" for example. I have tried the following: $if($len(%Year%)\>4,$cutRight(%Year%,6),%Year%) This will trim everything after the first 4 digits for those files where the year is greater than 4 characters in length. However, when running this action, if it finds a file with only a 4 digit year, it is deleting it. So, in the end, I want to be able to check the year field…

Why do you include the filename in the folder name?

> [@henriquebs12](#):
>
> I want to create folders of all files in the format "Year - Album name", but when I create an action of the type Format value, I used %year% - %album%%\_FILENAME%,

Aren't there many files in the folder?  
The format of the year that you show is actually the format for RELEASETIME. I would copy the data from YEAR to RELEASETIME and then cut the YEAR to just 4 digits as that is the format that the standard defines.

---

_[View the full topic](https://community.mp3tag.de/t/help-converting-year-to-a-simpler-format/41180)._
