title: How to get time using Moment JS
body: <p>I've two javascript variables: <code>startDate</code> and <code>endDate</code>. I want to store the current time(unix timestamp in ms) to <code>endDate</code> and timestamp of 24 hours before in <code>startDate</code>. I'll use this two variables to query the records for last 1 day. How can I do that using <strong>moment JS</strong>?  </p>