Html::convDateTime PHP Méthode

convDateTime() static public méthode

Convert a date YY-MM-DD HH:MM to DD-MM-YY HH:MM for display in a html table
static public convDateTime ( $time, $format = null )
$time datetime datetime to convert @param $format (default null)
    static function convDateTime($time, $format = null)
    {
        if (is_null($time) || $time == 'NULL') {
            return NULL;
        }
        return self::convDate($time, $format) . ' ' . substr($time, 11, 5);
    }

Usage Example

 function displayValue($output_type, $row)
 {
     if (isset($row[$this->name]) && $row[$this->name]) {
         return Html::convDateTime($row[$this->name]);
     }
     return '';
 }
All Usage Examples Of Html::convDateTime
Html