# How to format Filename from "20171130 191142-6A4A3E01.mp4" to TITLE "2017-11-30.mp4"?

**URL:** https://community.mp3tag.de/t/how-to-format-filename-from-20171130-191142-6a4a3e01-mp4-to-title-2017-11-30-mp4/64003
**Category:** Support
**Created:** [March 8, 2024, 4:41pm UTC](https://community.mp3tag.de/t/how-to-format-filename-from-20171130-191142-6a4a3e01-mp4-to-title-2017-11-30-mp4/64003 "2024-03-08T16:41:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![legohund](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@legohund](https://community.mp3tag.de/u/legohund)
#### Post date: [March 8, 2024, 4:41pm UTC](https://community.mp3tag.de/t/how-to-format-filename-from-20171130-191142-6a4a3e01-mp4-to-title-2017-11-30-mp4/64003/1 "2024-03-08T16:41:53Z")

</div>

This is an old topic, but I have a question about something quite similar.

I have some personal sound recordings downloaded from the icloud that all start with the date in the file name.

The file was recorded on the 30th of November 2017 and is therefore named "20171130 191142-6A4A3E01.mp4"

The date part of the filename should be the new title tag.

Isuccessfully managed to extract the date and put it into the title via the mentioned expression $cutLeft(%\_filename%,2). I changed the expression "$cutLeft(%\_filename%,8)" and it extracted 20171130.

It would be great if the title could be further formatted for better readability like this "2017-11-30" . Is this also possible?

Thank you!

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 8, 2024, 4:50pm UTC](https://community.mp3tag.de/t/how-to-format-filename-from-20171130-191142-6a4a3e01-mp4-to-title-2017-11-30-mp4/64003/2 "2024-03-08T16:50:10Z")

</div>

> [@legohund](#):
>
> 20171130 191142-6A4A3E01.mp4  
> would be great if the title could be further formatted for better readability like this "2017-11-30"

You could try Converter Tag -\> Tag and  
Field: **TITLE**  
Format string:  
`$regexp(%_FILENAME%,'(\d{4})(\d{2})(\d{2}).*',$1-$2-$3)`

![image](https://community.mp3tag.de/uploads/default/original/3X/4/7/4713b0689a080269c9e00bf3fdc531cd7cf0cec3.png)

This assumes that the first 4 digits of the filename always contains the YYYY year, then the following 2 digits contans the month and the following two digits contains the day. The part after the first 8 digits will be thrown away.

---

<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: [April 7, 2024, 4:50pm UTC](https://community.mp3tag.de/t/how-to-format-filename-from-20171130-191142-6a4a3e01-mp4-to-title-2017-11-30-mp4/64003/3 "2024-04-07T16:50:12Z")

</div>

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