title: How to initialize d3.scale.utc() using moment.js
body: <p>My server side model is saving date/time in UTC.
  In my front end I am using moment.js to create time objects using the server side data. </p>
  
  <p>However, I am using d3 to plot the data and I am not quite sure how I can initialize <code>d3.scale.utc()</code> using my moment object. I need to render the axis scale in UTC time.</p>
  
  <p>Previously, <code>d3.scale.utc().domain(starDate, endDate)</code> was working where <code>startDate</code> and <code>endDate</code> were native JavaScript date objects.</p>
  
  <p>But now that I have refactored the code to use moment.js to handle UTC time and making some of the date and time manipulation functions simplified, I am facing this plotting issue.</p>