/** * Formats one single date into a nice format. * @static * @param $date SingleDate object * @param string $return_mode expected values are 'int', 'string' and 'export'. The default value is 'string'. * @return string */ public static function formatDateAndRoom($date, $return_mode = 'string') { $dates = DateFormatter::wrapDateWithArray($date); return DateFormatter::formatDateWithAllRooms($dates, $return_mode); }