Please note: I have shifted my focus to Python/ Linux/ embedded development and am no longer accepting MODX or PHP projects. For MODX work, I recommend Grey Sky Media.
Usage: [[!now? &format=`%Y` ]]
$type = $modx->getOption('type',$scriptProperties,'now');
$date = $output = strtotime($type);
$format = $modx->getOption('format',$scriptProperties,'');
if ($format) {
$output = strftime($format,$date);
}
return $output;
Posted on Jan 09, 2013 by Default Admin User