def datetime_to_dateint(datetime_obj):
    """Converts the given datetime object to the corresponding dateint.

    Arguments
    ---------
    datetime_obj : datetime.datetime
        A datetime object decipting a specific point in time.

    Returns
    -------
    int
        An integer represeting the day, month and year of the given point in
        time. For example, 3:32 AM on December 3rd 2015 will be converted to
        the integer 20151203.
    """
    return datetime_obj.year * 10000 + datetime_obj.month * 100 \
        + datetime_obj.day