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 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -