Converting to manipulatable datetime format : <p>I have a date value <code>20130312</code> and I would like to convert it into a format like <code>2013-03-12</code> or a similar format</p>

<p>I've tried looking into the <code>datetime</code> library but could not find a solution.</p>

<p>Thanks in advance</p>
