Location: PHPKode > projects > Anchor CMS > anchor-cms-0.8/anchor/libraries/date.php
<?php

class Date {

	public static function format($date, $format = null) {
		if(is_null($format)) $format = Config::get('meta.date_format');

		$time = is_numeric($date) ? $date : strtotime($date);

		return date($format, $time);
	}

}
Return current item: Anchor CMS