title: How to convert GMT date time into GMT Unix TimeStamp using JS?
body: <p>I know there are various ways using which we can convert date time into Unix timestamp. </p>
  
  <p>But the problem is when we convert GMT's Date time value into Unix timestamp then it shows the value of timestamp according to my local timezone's value i.e. Asia/Kolkata</p>
  
  <p>For example:
  Date time of GMT is: 2018-08-21 11:37:56 So when I am converting it into Unix timestamp then it returns as follows:</p>
  
  <pre><code>var t = new Date('2018-08-21 11:37:56').getTime() / 1000;
  console.log(t); // 1534831676
  </code></pre>
  
  <p>I am looking for <code>1534851476</code> which is a value according to the GMT time zone.</p>
  
  <p>which is Unix timestamp according to my local time zone Asia/Kolkata. Can anyone help me out to get Unix timestamp value into GMT?</p>
  
  <p>For more information: you can check the Unix timestamp value of GMT date time here <a href="https://www.epochconverter.com/" rel="nofollow noreferrer">on this link</a>.</p>
  
  <p>Thank you!</p>