title: Get Epoch time value for different TimeZone
body: <p>My local time zone is IST , i tried to define timezone inside Date object like</p>
  
  <pre><code>const usaRegionTime = new Date(inputDate.toString()).toLocaleString(
          'en-US',
          {
            timeZone: 'America/New_York',
          }
        );
        const estDate = new Date(usaRegionTime);
  console.log(estDate.getTime());// Uses IST(local time Zone) instead of EST(Specifed time zone)
  </code></pre>
  
  <p><strong>Example</strong>: </p>
  
  <blockquote>
    <p>My IST time is 7:15 PM and i use the Date object with EST timeZone i get correct EST as 9:45 AM but when i try est.getTime() UTC is calculated as 7:15 pm instead of 1:45 pm . Its taking 9:45 am as IST(Local time Zone) before converting to UTC(Epoch).</p>
  </blockquote>
  
  <p><strong>Problem is its Taking Browser local timeZone(IST) instead of TimeZone(EST)</strong> i gave as param to Date object to get Epoch value . Is there a way to override the <strong>Local time Zone</strong> with <strong>Specified TimeZone</strong> while getting Epoch value.</p>