Under investigation in this paper is a (2+1)-dimensional Gross-Pitaevskii equation with time-varying trapping potential, which describes the dynamics of the (2+1)-dimensional Bose-Einstein condensate. Employing the Hirota method and symbolic computation, we obtain the dark one-soliton, two-soliton, three-soliton, breather-wave and rouge-wave solutions, respectively. We graphically study the dark solitons with the time-varying harmonic potential and scaled scattering length. Parallel and period solitons are observed. We obtain that when the external trapping potential increases with time, amplitudes of the dark solitons increase and widths of those solitons become narrower; when the external trapping potential is a periodic function, amplitudes and widths of the dark solitons periodically change. Decrease in the scaled scattering length leads to the narrower solitons' widths, but does not affect the solitons' amplitudes. Breather waves and rouge waves are also displayed: Rouge waves emerge when the period of the breather waves go to the infinity.