from datetime import datetime


def to_day_of_week_int(dt: datetime) -> int:
    """
    Get day of week of a date. Monday == 0...Sunday == 6.

    Parameters
    ----------
    dt : datetime
        Represents a datetime in datetime format.

    Returns
    -------
    int
        Represents day of week.

    """

    return dt.weekday()