Your second equation, $P(\nu,T) = \frac{2 h {\nu}^3}{c^2}$ $\frac{1}{\exp\bigl(\frac{h \nu}{kT}\bigr) - 1}$ is what is commonly referred to as Planck's law for radiation, although a more standard symbol used is $B_\nu(T)$. This is the energy radiated per time, per area, per frequency interval, per steradian. It is a formula for the 'specific intensity' of a source, which intuitively is the energy flux along a ray of radiation in a given direction, and so you must normalize by the solid angle subtended by that ray.
To get the total energy per time per area radiated by a patch of a black body, integrate over solid angle and over frequency. Be careful performing the solid angle integral, however, because you must include the geometric factor $\cos \theta$ that accounts for the projected area of the patch ($\theta = 0$ corresponds to a ray emitted in the normal direction). Rays leaving one side of a patch can only be directed into the upper hemisphere of the solid angle sphere. So the solid angle integral looks like this:
$$ F_\nu = 2 \pi \int_0^{\pi/2} B_\nu (\theta)\, \cos\theta \, \sin \theta \, d \theta$$
The $2 \pi$ out in front is for the azimuthal angle. Here, $F_\nu$ is what is commonly referred to as the specific flux ('specific' because it's still per unit frequency interval). Then, either by reading up on the Riemann $\zeta$ function, or just using a computer to tell you the answer, you can perform the frequency integral and get
$$ F = \sigma \, T^4$$
Here $F$ is what we commonly think of as the flux (energy per area per time), and $\sigma$ is the Stefan-Boltzmann constant,
$$\sigma \equiv \frac{2 \pi^5 \, k_\mathrm{B}^4}{15 \, h^3 \, c^2}$$