1) Select the files/folder in BRU.
2) Filter so only files that do NOT already contain a yyyy-dd-mm date are processed:
- Go to Filters (12) -> Condition
- Enter this JavaScript expression:
!/\b\d{4}-\d{2}-\d{2}\b/.test(name)
Explanation: that keeps only items whose filename (name) does NOT contain a 4-digit year + dash + 2-digit day + dash + 2-digit month anywhere.
3) Add the creation date as a prefix:
- Open Auto Date (8)
- Mode: Prefix
- Date Type: Created
- Format: Custom
- Custom format: %Y-%d-%m
(percent codes: %Y = 4-digit year, %d = day, %m = month)
- Sep.: set the separator you want between the date and filename (e.g. underscore _ or dash -). Example result with Sep = _:
2025-09-08_filename.jpg
- Ensure Cent. = 4-digit year (if shown).
4) Preview the New Name column carefully. If it looks correct, click Rename.
Notes and tips:
- The Condition uses the BRU JS context variable name (the filename without extension). If you want to detect other date separators or formats, change the regex to something broader, e.g. !/(\d{4}[-_\/]\d{2}[-_\/]\d{2})/.test(name)
- Always Preview first and consider testing on a small copy or backup before mass renaming.
- If you prefer to use the brace-style date token, Auto Date supports custom formats with % codes; the %Y-%d-%m approach is the appropriate one for yyyy-dd-mm.