Use Bulk Rename Utility’s Javascript Renaming (Special (14) -> Javascript Renaming) to read the MediaInfo date and assign it to newCreated and newModified. That lets you set both Created and Modified in one operation.
Prechecks
- Confirm the MediaInfo DLL is copied into the Bulk Rename Utility program folder and BRU has been restarted. (If MediaInfo tags are available you can also see them in the right-click > List of File Properties dialog.)
- If the MediaInfo tag you saw in the GUI was shown as "Recorded date" or as the example "File_Created_Date_Local", use the matching tag name below.
Step-by-step (quick)
1. Select the MP4 file(s) in BRU.
2. Open Special (14) -> Javascript Renaming.
3. Paste the script below into the editor.
4. Preview and run Rename. The script will set both Created and Modified to the MediaInfo recorded date if found.
Example JavaScript (copy/paste into BRU JS box)
(Note: this handles a couple of common tag name variations and falls back to leaving timestamps unchanged if no valid date found.)
- Code: Select all
 // Try MediaInfo tags that BRU exposes
var d = null;
// Preferred: MediaInfo local file created date (example tag used in docs)
d = filePropertyDate("MediaInfo:File_Created_Date_Local");
// If that returned null, try common alternative names
if (!d) d = filePropertyDate("MediaInfo:Recorded_Date");
if (!d) {
    // some builds expose as a plain string via fileProperty; try that and parse
    var s = fileProperty("MediaInfo:Recorded_Date") || fileProperty("MediaInfo:File_Created_Date_Local");
    if (s) {
        // try to parse ISO-like string
        var parsed = new Date(s);
        if (!isNaN(parsed)) d = parsed;
        // if parsing fails, try trimming timezone forms (optional)
    }
}
if (d) {
    // assign both Created and Modified to MediaInfo date
    newCreated = d;
    newModified = d;
} else {
    // optional: leave unchanged or set a fallback
    // newCreated = object("created"); newModified = object("modified");
}
Notes
- filePropertyDate("MediaInfo:File_Created_Date_Local") is the documented tag example; if your BRU shows the property under a slightly different label (check right-click > List of File Properties), use that exact label in filePropertyDate("...") or fileProperty("...").
- The script expects the tag to be returned as a Date (filePropertyDate) or a parseable string. If the MediaInfo value has a weird format you may need slight parsing adjustments.
- You can test on one file first. The JS editor supports previewing results.