# date string alteration question

**URL:** <https://community.mp3tag.de/t/date-string-alteration-question/18300>\
**Category:** Support\
**Created:** [October 6, 2016, 1:45pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300 "2016-10-06T13:45:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcorno](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/958977/32.png) [@bobcorno](https://community.mp3tag.de/u/bobcorno)\
**Post date:** [October 6, 2016, 1:45pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/1 "2016-10-06T13:45:17Z")

</div>

I have added a release date string into the title tag of some files. I would like to remove part of that string.

Example:

2013-12-06T22:40:53Z - rest of title tag

I would like to truncate that to

2013-12-06 - rest of title tag

I have searched several topics and tried a few actions that were suggested for other replace actions. Nothing has worked yet with regular replace for me, probably because I didn't use correct syntax.

Can anyone suggest the correct syntax to use to achieve that action?

Thanks

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [October 6, 2016, 2:48pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/2 "2016-10-06T14:48:48Z")

</div>

Use action replace with regular expression

Replace: T\d\d:\d\d:\d\dZ  
With: leave blank

---

<div class="post-metadata">

**Author:** ![bobcorno](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/958977/32.png) [@bobcorno](https://community.mp3tag.de/u/bobcorno)\
**Post date:** [October 6, 2016, 3:46pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/3 "2016-10-06T15:46:22Z")

</div>

> [@stevehero](#):
>
> Regular expression replace:
> 
> Replace: ^([^T]{1,10}).+  
> With: $1
> 
> OR more accurate method to be safe:
> 
> Replace: ^([^T]{1,10})\w\d\d:\d\d:\d\d\w$  
> With: $1

Thanks for posting a response quickly -

I tried the first code, it removed everything after the letter "T" in my example.  
The second one did not alter the title at all.

I did refresh view, etc. after performing the action. Any suggestions? I am not familiar with regular expression syntax.

---

<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 6, 2016, 3:58pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/4 "2016-10-06T15:58:21Z")

</div>

Perhaps this:  
Search: (.\*)T._Z - (._)  
Repalce: $1 - $2

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [October 6, 2016, 6:02pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/5 "2016-10-06T18:02:42Z")

</div>

Sorry I read the text string incorrectly. I've edited that post to reflect that.

---

<div class="post-metadata">

**Author:** ![bobcorno](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/958977/32.png) [@bobcorno](https://community.mp3tag.de/u/bobcorno)\
**Post date:** [October 7, 2016, 10:08am UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/6 "2016-10-07T10:08:11Z")

</div>

Yes, that new syntax works! Thank you very much for the help.

---

<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:** [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/date-string-alteration-question/18300/7 "2026-02-09T12:26:27Z")

</div>


