Theorem (Stokes' theorem)
Let $S$ be a smooth surface in $\R^3$ with boundary $C=\partial S$. For a smooth vector field $\v F(\v x)$, $$ \int_S (\nabla\times\v F)\cdot d\v S = \oint_C \v F\cdot d\v x. $$ The orientation is that $d\v x\times d\v S$ should point outward of $S$ (the orientation should be along how you curl your right hand figures around the normal vector).
(Green's theorem is obtained by taking $\v F=(P,Q,0)$ and $S$ be on the $z=0$ plane.)