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

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!

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

image

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.