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

c# - Outlook Add-in,group emails based on color category -

PHP: Exploding array elements -

forms - Secure PHP File Upload Script -