title: How I insert a time-date-stamp in MongoDB with a Golang Sruct?
body: <p>I have the following struct:</p>
  <p>type TypeIncidence struct {
  Number      int    <code>bson:&quot;number&quot; json:&quot;number&quot;</code>
  Description string <code>bson:&quot;description&quot; json:&quot;description&quot;</code>
  Date_time_stamp string <code>bson:&quot;dateTimeStamp&quot; json:&quot;date_time_stamp&quot;</code>
  }</p>
  <p>and I want insert a document in a collection:</p>
  <pre><code>type TypeIncidence struct {
      Number      int    `bson:&quot;number&quot; json:&quot;number&quot;`
      Description string `bson:&quot;description&quot; json:&quot;description&quot;`
      Date_time_stamp **string?**
  }
  
  
  var incidence TypeIncidence
  
  incidence.Number = 1
  Description =&quot; Text&quot;
  Date_time_stamp = **string?**
  </code></pre>
  <p>What data type would I have to use in a Golang structure to store date_time_struct a string?</p>
  <p>If I want to store with the following format <strong>'YYYY-MM-DD hh:mm:ss'</strong>, what module and/or function should I use in golang? (in local machine or server converting zone time)</p>
  <p>Thanks in advance</p>