title: Python-Flask-SQLAlchemy Get date column in ISO format
body: <p>I have a model class which looks like this </p>
  
  <pre><code>class Test(database.Model):
         created_date = database.Column(database.DateTime,
                                        default=datetime.utcnow,
                                        nullable=False)
  </code></pre>
  
  <p>I'm getting this via running command </p>
  
  <pre><code>all = Test.query.all()
  </code></pre>
  
  <p>Now, this gets me dates in format <code>2017-09-05 09:45:28</code> I want to get ISO representation of dates like <code>2017-09-05T09:45:28.263000</code>. </p>
  
  <p>One option is to post-process the data I received, but what is the better approach? Is there any SQLAlchemy construct which will help me achieve this?</p>