# Setting year field with full incrementing date

**URL:** https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363
**Category:** Support
**Created:** [October 27, 2024, 1:59pm UTC](https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363 "2024-10-27T13:59:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![NadCat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@NadCat](https://community.mp3tag.de/u/NadCat)
#### Post date: [October 27, 2024, 1:59pm UTC](https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363/1 "2024-10-27T13:59:51Z")

</div>

I have a program that requires my audio files to have their release date in YYYY-MM-DD format in their year tag in order to sort them. I do not care about the actual dates but I need to set this value for 140 files. Is there a way to essentially count up (or down) the days starting from a specific date?

Example: I'd start with 2014-01-01 and would want to increment this for the other files. File 2 would have 2014-01-02, file 3 2014-01-03 and so on

I'd usually do something like this programmatically but the library I usually use assumes that the year tag is always an int.

---

<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 27, 2024, 2:07pm UTC](https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363/2 "2024-10-27T14:07:14Z")

</div>

> [@NadCat](#):
>
> I'd start with 2014-01-01

You could use an action of the type "Format value" for that field and as  
Format string: `2014-01-$num(%_counter%,2)`  
which sets a 2-digit incremental number.  
It does not care about valid dates.

---

<div class="post-metadata">

### Author: ![NadCat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@NadCat](https://community.mp3tag.de/u/NadCat)
#### Post date: [October 27, 2024, 2:26pm UTC](https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363/3 "2024-10-27T14:26:16Z")

</div>

Nice, that worked. I just selected 30 each time and changed the month value. Much faster than setting every single one by hand. Thanks!

---

<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: [November 26, 2024, 2:26pm UTC](https://community.mp3tag.de/t/setting-year-field-with-full-incrementing-date/66363/4 "2024-11-26T14:26:27Z")

</div>

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