<?php $q = $modx->newQuery('modResource'); $q->select(array( "max(editedon)", )); $time = $modx->getValue($q->prepare()); $date = date('Y.m.d H:i', $time); print $date;
<?php $q = $modx->newQuery('modResource'); $q->select(array( "max(editedon)", )); $time = $modx->getValue($q->prepare()); $date = date('Y.m.d H:i', $time); print $date;