How to Rename Files Using the Date and Time Format

Post any Bulk Rename Utility support requirements here. Open to all registered users.

How to Rename Files Using the Date and Time Format

Postby SoCu » Mon Jul 06, 2026 2:57 pm

Hi, I've been looking at other posts and can't seem to change anything—just delete the first few characters—and I can't find the formula to format the file names. I was wondering if you could tell me how to do it.

I have files captured with my camera—some are images and others are videos. The image files start with the letters IMGxxxxx, and the videos start with VIDxxxxx.
The digits following those letters correspond to the year, month, day, hour, minutes, and seconds.

The files would look like this:

VID20260625135210.mp4
IMG20260625135206.jpg
IMG20260625135016.jpg
VID20260625134723.mp4
VID20260625134208.mp4
IMG20260625134737.jpg
IMG20260625124813.jpg

What I'm trying to do is remove the first three characters and replace the following numbers with the date and time, using this format

2026-06-25 13-52-10.mp4
2026-06-25 13-52-06.jpg
2026-06-25 13-50-16.jpg
2026-06-25 13-47-23.mp4
2026-06-25 13-42-08.mp4
2026-06-25 13-47-37.jpg
2026-06-25-12-48-13.jpg

I'm trying this out, but I can't seem to get anything to work:

Remove (5):
First n: 3

RegEx(1)
Match: (\d\d\d\d)(\d\d)(\d\d)(\h\h) (\m\m) (\s\s)
Replace: \1-\2-\3 \4-\5\6
Activar: v2

What code would I need to use to do that?

Thank you.
SoCu
 
Posts: 16
Joined: Mon Dec 15, 2025 6:20 pm

Re: How to Rename Files Using the Date and Time Format

Postby therube » Mon Jul 06, 2026 6:42 pm

You've basically got it, except you used h m s rather then \d.


1:Regex, v2
Code: Select all
Match: (\d\d\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)
Replace: \1-\2-\3 \4-\5-\6

5:Remove, First: 3


---


Alternatively, with Regex alone:
1:Regex, v2
Code: Select all
Match: (...)(\d\d\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)
Replace: \2-\3-\4 \5-\6-\7


(...) will match the first 3-chars, & you simply do not include that in the Replace: (i.e., \1)
therube
 
Posts: 1478
Joined: Mon Jan 18, 2016 6:23 pm

Re: How to Rename Files Using the Date and Time Format

Postby SoCu » Tue Jul 07, 2026 8:20 am

therube, it works now! Regular expressions are driving me crazy, haha.

Thank you so much.
SoCu
 
Posts: 16
Joined: Mon Dec 15, 2025 6:20 pm


Return to BRU Support