public static function fromNative(\DateTimeInterface $dateTime) : Date
    {
        return new self((int)$dateTime->format('Y'), (int)$dateTime->format('m'), (int)$dateTime->format('d'));
    }
public static function fromNative(\DateTimeInterface $dateTime) : Date
    {
        return new self((int)$dateTime->format('Y'), (int)$dateTime->format('m'), (int)$dateTime->format('d'));
    }
public static function fromNative ( \ DateTimeInterface $ dateTime ) : Date { return new self ( ( int ) $ dateTime -> format ( 'Y' ) , ( int ) $ dateTime -> format ( 'm' ) , ( int ) $ dateTime -> format ( 'd' ) ) ; }
Creates a date object from the date part of the supplied date time.

@param \DateTimeInterface $dateTime

@return Date
Creates a date object from the date part of the supplied date time .