# Changing date order in file names ?

**URL:** https://community.mp3tag.de/t/changing-date-order-in-file-names/9907
**Category:** Support
**Created:** [February 16, 2010, 10:53am UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907 "2010-02-16T10:53:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Walli\_Glez](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Walli\_Glez](https://community.mp3tag.de/u/Walli_Glez)
#### Post date: [February 16, 2010, 10:53am UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/1 "2010-02-16T10:53:22Z")

</div>

Hi,

I'm sorry to ask this question because the answer as surely already be given, but I didn't find it. ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:")

I'd like to change date format in filenames.

I use mp3tags ton rename podcasts files. I've made an "actions" macro to adapt titles and filenames for the small screen of my mp3 reader (Sanza Clip).

I geat files named as :

_name\_of\_the\_program_ 29.01.2010 (01/31/2010 in US format)
(the filename including the date is the title of the program)

But of course, in my mp3 reader, programs are not good sorted. So I'd like to have :

 _name\_of\_the\_program_ 2010.01.31

Thanks a lot.

---

<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: [February 17, 2010, 11:31am UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/2 "2010-02-17T11:31:11Z")

</div>

> [@Walli Glez](#):
>
> _name\_of\_the\_program_ 29.01.2010 (01/31/2010 in US format)
> 
> _name\_of\_the\_program_ 2010.01.31
> 
> Thanks a lot.

perform an action of the type "replace with regular expression"  
search for  
(\*. )(\d+).(\d+).(\d+)

where (\*. ) stands for "name\_of\_the\_program"+blank and becomes section %1  
the first (\d+) stands for the 29 and becomes section %2,  
the second (\d+) stands for the 01 and becomes section %3  
the third (\d+) stands for the 2010 and becomes section %4

and replace it with  
%1%4.%3.%2

try it, I hope it works.

---

<div class="post-metadata">

### Author: ![Walli\_Glez](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Walli\_Glez](https://community.mp3tag.de/u/Walli_Glez)
#### Post date: [March 17, 2010, 9:46am UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/3 "2010-03-17T09:46:10Z")

</div>

Hi,

thanks a lot for your help. I think there're two little problems :

First, when I paste your expressions in the fields of the "replace with regular expression" (on TITLE field), I can't valid. I get an error message  
"Regular expression  
Invalid preceding regular expression"

the second point is, if I've good understud, that (_.) is supposed to detect the name of the program (_) and the blank before the date (. )  
But the name of the program isn't allaways one word.  
Some samples :

- RDV X 23.01.2010
- Papous 23.01.2010
- S Guillon 23.01.2010
- Place Toile 23.10.2010  
So I suppose there will be a problem if \* is to recognise only one word. Am I wrong ?  
Should I turn the name of the program in one word by replacing blanks by underscore for instance ?

Thanks for help.

---

<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 18, 2010, 5:48pm UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/4 "2010-03-18T17:48:45Z")

</div>

> [@ohrenkino](#):
>
> perform an action of the type "replace with regular expression"  
> search for  
> (\*. )(\d+).(\d+).(\d+)
> 
> where (\*. ) stands for "name\_of\_the\_program"+blank and becomes section %1  
> the first (\d+) stands for the 29 and becomes section %2,  
> the second (\d+) stands for the 01 and becomes section %3  
> the third (\d+) stands for the 2010 and becomes section %4
> 
> and replace it with  
> %1%4.%3.%2
> 
> try it, I hope it works.

I did it again- mixing up % and $: it must be  
$1$4.$3.$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 18, 2010, 5:53pm UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/5 "2010-03-18T17:53:07Z")

</div>

> [@Walli Glez](#):
>
> the second point is, if I've good understud, that (_.) is supposed to detect the name of the program (_) and the blank before the date (. )  
> But the name of the program isn't allaways one word.  
> Some samples :
> 
> - RDV X 23.01.2010
> - Papous 23.01.2010
> - S Guillon 23.01.2010
> - Place Toile 23.10.2010  
> So I suppose there will be a problem if \* is to recognise only one word. Am I wrong ?  
> Should I turn the name of the program in one word by replacing blanks by underscore for instance ?
> 
> Thanks for help.

Actually it is the dot that stands for any character and the asterisk says "I don't care how many".  
have you tried the expression with the longer strings? It should work as well as the delimiter is the first number, not the first blank.

---

<div class="post-metadata">

### Author: ![Walli\_Glez](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Walli\_Glez](https://community.mp3tag.de/u/Walli_Glez)
#### Post date: [April 2, 2010, 2:55pm UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/6 "2010-04-02T14:55:11Z")

</div>

Hi,

I've tried again. And I get an error :

Regular expression "(\*. )(\d+).(\d+).(\d+)"  
Invalid preceding regular expression.

I'm stopped there. And I don't understand : I've read help file again and can't see where your expression could not be perfect !

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 2, 2010, 3:10pm UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/7 "2010-04-02T15:10:18Z")

</div>

Try (. **\*** )(\d+).(\d+).(\d+)

---

<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:22pm UTC](https://community.mp3tag.de/t/changing-date-order-in-file-names/9907/8 "2026-02-09T12:22:11Z")

</div>


