from datetime import datetime


def datetime_string_to_datetime(string: str):
    """
    Convert datetime formatted string to datetime
    :param string: str "%Y-%m-%d %H:%M:%S"
    :return: datetime
    """
    return datetime.strptime(string, "%Y-%m-%d %H:%M:%S")