title: How to store Date field as ISODate() using jackson in MongoDb
body: <p>I am trying to persist a java object having <strong><code>java.util.Date</code></strong> field in mongo collection using fasterxml jackson.
  The problem is the default nature of objectMapper is to store Date as NumberLong type.</p>
  
  <p>For e.g , a <strong><code>createdTime</code></strong> field of <strong><code>java.util.Date</code></strong> type gets stored as below:</p>
  
  <p><strong><code>"createdTime" : NumberLong("1427728445176")</code></strong></p>
  
  <p>I want to store it in <strong>ISODate</strong> format which is available in mongo Shell.</p>
  
  <p>Now, i know there is way to format object mapper to store Date in a String dateformat.
  But I am ONLY looking for ISODate() format.</p>
  
  <p>For e.g
  <strong><code>"createdTime" : ISODate("2015-01-20T16:39:42.132Z")</code></strong></p>
  
  <p>Is there a way to do that ? 
  Please advise gurus .
  Thanks in advance for help.</p>