Convert numerical date to written date?

I am trying to take dates that come in numerically and convert them to written format, e.g., 2010-04-21 would convert to April 21, 2010.

thanks rajug - that did it.


$date = '2010-04-21';
echo date('F d, Y', strtotime($date));