We have studied the dynamical behaviours of two electrons confined in a double quantum dot driven by rotating magnetic fields in terms of the theory of Lewis-Riesenfeld Hermitian invariants for the explicitly time-dependent Hamiltonian. The coherent spin oscillations in the dot provide a generation source for spin current. Exact solutions obtained allow us to investigate the dynamical properties of the spin localization for various initial localized states.