var fiveMinutes=300000;  //milliseconds in 5 minutes
var now = new Date();
var temp=now.getTime()   //temp=now in milliseconds
var newTime=new Date(eval(temp+fiveMinutes));      //newTime is now 5

minutes from now

or trimmed down

var newTime=new Date(new Date().getTime()+30000).toLocaleString()
;





clint <[EMAIL PROTECTED]> on 01/10/2002 12:35:21 PM

Please respond to [EMAIL PROTECTED]

To:   CF-Talk <[EMAIL PROTECTED]>
cc:

Subject:  OT: Javascript Help


I know this is off topic, but it kinda isn't.

Can someone show me how to add 5 minutes to now in javascript?

I am having a hard time finding how to do this.

Thanks!


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to