title: How to insert the timestamp in milliseconds as NumberLong in MongoDB using NodeJS
body: <p>I new to nodejs and trying implement mongodb insert of current timestamp as milliseconds using nodejs its getting inserted as double value. Can anyone help me how to insert this as NumberLong value.</p>
  
  <pre><code>var data = {
          myId : uniqueId,
          Timestamp : Date.now(),   ---&gt; This one is getting inserted as double.
          userData : applicationData
        }
      }
  </code></pre>
  
  <p>I also try to insert like this but its getting insert as String.</p>
  
  <pre><code> var mongo=require('mongodb');
   var Long = mongo.Long;
  
   var data = {
          myId : uniqueId,
          Timestamp : Long.fromString((Date.now() + "")), ---&gt; This one is getting inserted as String.
          userData : applicationData
        }
      }
  </code></pre>