@classmethod
def from_date(cls, date):
    """Return a Month instance from given a date or datetime object.

        Parameters
        ----------
        date : date or datetime
            A date/datetime object as implemented via the standard lib module.

        Returns
        -------
        month : Month
            The month object for that date.

        """
    try:
        date = date.date()
    except AttributeError:
        pass
    return cls(date.year, date.month)
