Basic circuit analysis - diferential equation
This should help (it helped me!!): -

The final formula is written as V/R instead of Io but it means the current at time = 0.
Copied from http://www.intmath.com/differential-equations/6-rc-circuits.php in case you need the full article. This took me back a few years!