from datetime import datetime


def str_dt(date_string: str, format_='%Y-%m-%dT%H:%M:%S') -> datetime:
    """
    Converts a datetime string into a datetime object
    """
    return datetime.strptime(date_string, format_)