public function dayTo(int $day): Date
    {
        return $this->createNewDateWithExistingTime(
                $this->originalDate->year(),
                $this->originalDate->month(),
                $day
        );
    }
public function dayTo(int $day): Date
    {
        return $this->createNewDateWithExistingTime(
                $this->originalDate->year(),
                $this->originalDate->month(),
                $day
        );
    }
public function dayTo ( int $ day ) : Date { return $ this -> createNewDateWithExistingTime ( $ this -> originalDate -> year ( ) , $ this -> originalDate -> month ( ) , $ day ) ; }
returns a new date instance with changed day but same time, year and month

@api
@param   int  $day
@return  \stubbles\date\Date
returns a new date instance with changed day but same time year and month