title: Firebase new Date()?
body: <p>I'm new to Firebase and I was wondering how I can store a JavaScript date and use Firebase to compare them on the client side later?</p>
  
  <p>I want to do something like:</p>
  
  <pre><code>var someDate = new Date();
  myRootRef.set(someDate);
  
  myRootRef.on('value', function(snapshot) {
       var currDate = new Date();
  if (currDate &gt;=  snapshot.val()){
       //do something
  }
  </code></pre>
  
  <p>However, I get back a value of <code>null</code> from the snapshot?</p>