title: Serializing dates in moment.js
body: <p>I have a calendar which is initialized this way:</p>
  
  <pre><code>  startDate: moment().subtract('month', 1).startOf('month'),
    endDate: moment()
    }, function(start, end) { // on date change - save it and retrieve later
       // start is the start date
       // end is the end date
    }
  </code></pre>
  
  <p>I want to be able to save and restore the start and end dates. As you can see startDate and endDate must be in "moment". I can store it to a cookie or on the server - that doesn't matter. </p>
  
  <p>My question is how to serialize the dates and then restore?</p>