from datetime import datetime


def is_datetime(string):
    """
    Check if a string can be converted to a datetime object.

    :param string: the string
    :return: True if the string can be converted to a datetime object, False otherwise
    """
    try:
        datetime.strptime(string, "%Y-%m-%d %H.%M.%S")
    except Exception:
        return False
    return True