So I know Python strings are immutable, but I have a string:
c[\'date\'] = \"20110104\"
Which I would like to convert to
c[\'da
Dates are first class objects in Python, with a rich interface for manipulating them. The library is datetime.
> import datetime > datetime.datetime.strptime('20110503','%Y%m%d').date().isoformat() '2011-05-03'
Don't reinvent the wheel!