Hi Robin,
This is not possible with the Admin Columns user interface, but your are able to manage this with some of our filters.
You can have a look at this page: https://www.admincolumns.com/documentation/filter-reference/cac-column-value/
The function below gives you a base setup that shows you the amount of days from now for alle custom fields set to date. You may want an extra check if you want to trigger a specific column.
function cac_datefield_days_from_now_value( $value, $object_id, $column ) {
if ( 'date' == $column->get_option( 'field_type' ) ) {
$now = time();
$date = strtotime( $value );
$seconds = $now - $date;
$minutes = $seconds / 60;
$hours = $seconds / 3600;
$days = $seconds / 86400;
if( $days > 0 ){
$value = ceil( $days ) . ' days ago';
} else {
$value = (ceil( $days ) * -1 ) + 1 . ' days ahead';
}
}
return $value;
}
add_filter( 'cac/column/value', 'cac_datefield_days_from_now_value', 10, 3 ); // All columns for all content types