How to set the UK timezone in javascript?

<!DOCTYPE html>

<h2>JavaScript new Date()</h2>

<p id="demo"></p>

var getUkTime= function(){

var d = new Date();
//This is the current date and time according to Indian Standard

// Below code sets time according to UK Standard output the date and time according to Uk Standard in P element with id="demo".
document.getElementById("demo").innerHTML =d.toLocaleString('en-US', { 			timeZone: 'Europe/London'});



You can set timezone for other countries for that you just have to change the value of timeZone for example ‘America/New_York’, ‘Australia/Sydney’, ‘Europe/Moscow’, ‘Europe/Berlin’, ‘Asia/Shanghai’, ‘Asia/Jerusalem’.

How to Add Product to Shopify?expoundsofttechsolution How to set UK timezone in javascript?