 <p>Following lines of javascript worked for me.</p> <pre><code>Date utcDate; /*utcDate = your own initialisation statement here;*/ Date localDate = new Date(utcDate.getTime() + TimeZone.getDefault().getRawOffset()); </code></pre> <p>Alternatively you can try <a href="http://momentjs.com/" rel="nofollow noreferrer">moment.js</a> which won't add time offset automatically.</p> <p>Cheers!</p>