/** * Format date according to a format string. * * @param array $date date array (gotten with getdate()) * @param string $format format string, compatible with PHP's date format functions * @param bool $weekday include day-of-week or not * * @return string with formatted date */ public function formatDate($date, $format, $weekday = true) { return Tools::atkFormatDate($date, $format, $weekday); }