# Transfering %year% and %date% to %releasetime%

**URL:** <https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741>\
**Category:** Support\
**Created:** [November 9, 2020, 3:46pm UTC](https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741 "2020-11-09T15:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [November 9, 2020, 3:46pm UTC](https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741/1 "2020-11-09T15:46:28Z")

</div>

Hi am trying to transfer the %year% tag [YYYY] and the %date% tag [DDMM] to %releasetime% tag.

I was able to do that using the format value action but i have a problem, %releasetime% tag obviously is in wrong format [YYYY-DDMM]

I want to create an action which will result the %releasetime% tag to be formatted in [YYYY-MM-DD]

---

<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 9, 2020, 4:01pm UTC](https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741/2 "2020-11-09T16:01:19Z")

</div>

> [@SpirosG](#):
>
> using the format value action

That is the correct approach. Try  
Format string: `%year%-$regexp(%date%,(\d\d)(\d\d),$2-$1)T00:00:00Z`

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [November 9, 2020, 4:05pm UTC](https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741/3 "2020-11-09T16:05:16Z")

</div>

Great! 👏 👏 👏  
It Works flawlessly!

Thank you @ohrenkino

---

<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 9, 2020, 4:05pm UTC](https://community.mp3tag.de/t/transfering-year-and-date-to-releasetime/50741/4 "2020-12-09T16:05:24Z")

</div>

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