Page 1 of 1
Age in days instead of years
Posted: 06 May 2017 05:10
by Bart
Is the a way to show the Age in the file explorer in days instead of years (or even months) when the age is more than a year. I have been looking around but could bot find.
Bart
Re: Age in days instead of years
Posted: 06 May 2017 07:28
by highend
Maybe a custom column?
E.g. for the created date:
Code: Select all
$diffH = datediff(property("#date.c", <cc_item>), , "h");
return regexreplace($diffH / 24, "[.,]\d+$") . " day(s)";
Re: Age in days instead of years
Posted: 06 May 2017 07:49
by Bart
Thank you. How to assign this code, I am a newby here.
Bart
Re: Age in days instead of years
Posted: 06 May 2017 08:46
by highend
- Right click in the column header, "Add column" (or: Menu - View - Columns - Add Column)
- Right click the newly added column header (current name: "(Undefined)"), "Select Custom Column..."
- Choose an entry of the list (one of the "(Undefined)" entries), click "OK"
- Right click the newly added column header (current name is still: "(Undefined)"), "Configure Custom Column <xx>..."
Caption: e.g.: "Age in days"
Type: Script
Format: Text or Text Right-Aligned
Trigger: Browse or List (depending on speed)
Re: Age in days instead of years
Posted: 06 May 2017 17:10
by Bart
Thanks! It works well.
Let me explore the other settings in this field.
Bart