title: convert Epoch to js date object/moment date object in react js excluding timezone
body: <p>We store the Unix epoch time in database which is in number format. Ex: <strong>1528137000</strong> is <strong>5 June 2018 00:00:00</strong>.</p>
  
  <p><strong>Note</strong>: not interested in time</p>
  
  <p><strong>5 June 2018</strong> should always be displayed irrespective of timezones.</p>
  
  <p>Currently using </p>
  
  <pre><code>const epochValue = 1528137000;
  console.log(moment.unix(epochValue));
  </code></pre>
  
  <p>Executing above code in <strong>Kolkata location</strong> will output as <code>moment("2018-06-05T00:00:00.000")</code></p>
  
  <p>Executing above code in <strong>Toronto location</strong> will output as <code>moment("2018-06-04T14:30:00.000")</code></p>
  
  <p>But I always need the output as <strong>2018-06-05</strong> ie., June 5, 2018 this object will be binded to DatePicker material design control.</p>