public static function translate_format($field) { return strtr($field['js_options']['dateFormat'], self::$date_formats) . $field['js_options']['separator'] . strtr($field['js_options']['timeFormat'], self::$time_formats); }