Granular Date controls?

I'm demo-ing Dopus, and trying to customise the amount of information that's shown. I find that using 'Date' instead of 'date and time' isn't giving me the information I need when it's stuff I made or modified in the last hour or so, but any other time Date and Time is overkill for a clean look at the data

Is there a way to show the time only for the last day or week? On a file that was created a month ago I'm unlikely to always want a clear view on exactly what time I changed it, but on the day itself that's different!

Not built-in, but it could be done using a script column.

1 Like

That's good to know! If anyone can help out on that front already I'd be grateful, but I imagine official support won't chip in until I'm licensed up :smiley:

Here's a script column, that only shows the time when the file has been modified within the last three days.

function OnInit(initData) { = 'FuzzyDate';
    initData.version = '2022-02-17';
    initData.url = '';
    initData.default_enable = true;
    initData.min_version = '12.0';

function OnAddColumns(addColData) {
    var col = addColData.AddColumn();
    col.method = 'OnColumn'; = 'FuzzyDate';
    col.label = 'FuzzyDate';
    col.header = 'FuzzyDate';
    col.defwidth = 6;
    col.autorefresh = 1;
    col.autogroup = true;

function OnColumn(scriptColData) {
    var itemMod = scriptColData.item.modify;
    var oneDay = 24 * 3600 * 1000;
    var isYoung = DOpus.Create().Date() - itemMod < 3 * oneDay;
    scriptColData.value = itemMod.Format('d' + (isYoung ? 't' : ''));
    scriptColData.sort = itemMod * 1000 +;

ColumnFuzzyDate.js.txt (847 Bytes)

See section "Script Add-Ins" in