public static function isDateTime($value)
    {
        if ($value instanceof \DateTime) {
            return true;
        }

        $date   = new \DateTime($value);
        $errors = $date->getLastErrors();

        return (0 == $errors['warning_count'] && 0 == $errors['error_count']);
    }