title: Saving Date in IndexedDB store an empty object
body: <p>I'm trying to save some objects in IndexDB. One of the properties of this object is a Date Javascript object.
  This Date property is always save as an Empty Object at IndexDB.</p>
  
  <pre><code>var trans = db.transaction(["todo"], "readwrite");
              var store = trans.objectStore("todo");
              lastIndex++;
              var myDateObject = new Date();
              var request = store.put({
                      "id": lastIndex,
                      "text": todoText, 
                      "date": myDateObject
              });
  </code></pre>
  
  <p>But what I obtain is:</p>
  
  <pre><code>{Key: 1, 
   Value { 
           Id: 1, 
           text: "myText",
           date:{}           // ??
          }
   }
  </code></pre>
  
  <p>Due to the documentation is possible to do it:</p>
  
  <blockquote>
    <p>value Each record has a value, which could include anything that can
    be expressed in JavaScript, including boolean, number, string, date,
    object, array, regexp, undefined, and null.</p>
  </blockquote>
  
  <p>As can be read here: <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Basic_Concepts_Behind_IndexedDB#key" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Basic_Concepts_Behind_IndexedDB#key</a></p>
  
  <p>Plunker to reproduce: 
  <a href="http://plnkr.co/edit/bcH3mmDC3dQ8S89J4dNl?p=preview" rel="nofollow">http://plnkr.co/edit/bcH3mmDC3dQ8S89J4dNl?p=preview</a></p>
  
  <p>Disclaimer: I've recycle a Plunker made by Jayesh Chandrapal from <a href="http://embed.plnkr.co/ip6owK/preview" rel="nofollow">http://embed.plnkr.co/ip6owK/preview</a>.</p>