On the example below, please note that Windows Explorer shows the right date of the files (all from April 2021), but XYplorer does not.
I've researched on the forums but haven't found an answer, so I'm posting this issue here. I appreciate any help.




Code: Select all
return property("System.Media.DateEncoded", <cc_item>);Code: Select all
$items = <get SelectedItemsPathNames>;
end (!$items), "No item(s) selected, aborted!";
setting "BackgroundFileOps", 0;
foreach($item, $items, <crlf>, "e") {
if (exists($item) == 2) { continue; }
$dateEncoded = property("System.Media.DateEncoded", $item);
if ($dateEncoded == "") { continue; }
$old = gpc($item, "base");
$new = formatdate($dateEncoded, "dd-mm-yyyy___hh_nn_ss");
if ($new != $old) { renameitem($new, $item); }
}