Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i substract 2 Date() objects

Status
Not open for further replies.

torga

Programmer
Apr 28, 2001
11
ES
I want to decrement in 20 minutes a Date() object created before...Any idea???

Thanks a lot!
Ton.
 
var x = new Number(new Date());
x -= 1200000;
x = new Date(x); luciddream@subdimension.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top