public static function getDate($string) { $words = explode(" ", $string); return $words[3] . '-' . TimeUtil::getMonth($words[2]) . '-' . $words[1] . ' ' . $words[4] . ':00'; }