javascript - How to subtract 2 hours from user's local time? -


can give me simple javascript code block allow me display local time minus 2 hours?

subtract date object

var d = new date();  d.sethours(d.gethours() - 2); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

binding - How can you make the color of elements of a WPF DrawingImage dynamic? -

c# - How to add a new treeview at the selected node? -