Check a datetime in pythonlist and convert to string
<pre><code>lista = [datetimeobject,'test',32]
</code></pre>

<p>if any element in the list is a datetimeobject, I need to convert to date format(ie;<code>2012-01-01</code>) and wrap around a quote "'" ie;<code>'2012-01-01'</code></p>

<p>How can I accomplish it?</p>
