Please?
Help says "The Item Date is the primary date of interest for an item" but "Item Date" does not equal Date. It might be timezone-converted Date and/or Received.
I do need Date itself, ideally with custom format.
Thanks.
Admin wrote:What does the Windows File Property -> Details tab show for the EML file?
Admin wrote:Bulk Rename will match that.
Admin wrote:You can adapt the date with BRU javascript, can you send a sample file to support via email? thanks
Admin wrote:The new version 4.0.0.9 will have a fileMatch function to extract the date from the EML file and then it can be applied to the file name.
Admin wrote:Yes, there will be a new function fileMatch which can extract text from a file based on RegEx.
Using the JS assistant https://www.bulkrenameutility.co.uk/js/ it should be easy to use.
Admin wrote:JavaScript in BRU is available under a Home / Academic License or Commercial License.
Admin wrote:This functionality had to be added to JavaScript for flexibility (read from file, extract data, reformat, etc)....
// Example: if name is "invoice.eml", after running the script newName becomes something like "2025-07-08_15-30-00-invoice"
// 1) Read the "Date:" header line (case-insensitive)
var rawDateLine = fileMatch('^Date:\\s*.*', 'i');
// 2) Extract the substring after the first colon and trim whitespace
var dateValue = rawDateLine ? rawDateLine.substring(rawDateLine.indexOf(':') + 1).trim() : null;
// 3) Parse into a JavaScript Date (local time)
var msgDate = dateValue ? new Date(dateValue) : null;
// 4) Format as "YYYY-MM-DD_HH-mm-ss"
var dateStr = msgDate ? formatDateTime(msgDate, 'YYYY-MM-DD_HH-mm-ss') : '';
// 5) Prefix the original name (without extension) with the formatted date, separated by a dash
newName = dateStr ? dateStr + '-' + name : name;