title: NodeJs How to use moment-timezone to convert Epoch to Specific TImezone and format
body: <p>I have a use-case in which I want to convert an Epoch integer value into a specific Timezone time and a specific format,<br>
  Also, I want to convert a human-readable date time into epoch.<br></p>
  
  <p>I am trying to use <code>moment-tz</code> for the timezone conversion.<br></p>
  
  <p>I using a specific Epoch timestamp <code>1555296000</code> which is -<br>
  <code>Monday, April 15, 2019 10:40:00 AM</code> in Kuala Lampur Malaysia,<br>
  I am able to convert <code>2019-04-15 10:40:00</code> of <code>Asia/Kuala_Lumpur</code> timezone into correct Unix.<br></p>
  
  <p>But I am unable to convert <code>1555296000</code> into another timezone's unix,<br>
  i.e I wish to convert <code>1555296000</code> into equivalent <code>YYYY-MM-DD hh:mm:ss</code> of <code>Asia/Calcutta</code> timezone.<br></p>
  
  <p><strong>Following is the code I'm trying to work with -</strong></p>
  
  <pre><code>var moment = require('moment-timezone');
  
      console.log("Convert from Asia/Kuala_Lumpur to Unix -&gt; ", moment.tz("2019-04-15 10:40:00","Asia/Kuala_Lumpur").unix());
  // Outputs - 1555296000
  
  console.log("Epoch to Specific TimeZone and Format -&gt; ",moment(1555296000).tz("Asia/Calcutta").format('YYYY-MM-DD hh:mm:ss'));
  // Outputs - 1970-01-19 05:31:36
  // I want  - 2019-04-15 08:10:00
  </code></pre>