With the help of the time-dependent Lagrangian for a damped harmonic oscillator, the quantization of mesoscopic RLC circuit in the context of a number-phase quantization scheme is realized and the corresponding Hamiltonian operator is obtained. Then the evolution of the charge number and phase difference across the capacity are obtained. It is shown that the number-phase analysis is useful to tackle the quantization of some mesoscopic circuits and dynamical equations of the corresponding operators.