> 2 hours from now() or
alert(new Date().add(-2).hours())
> 2 days before [specified date]
var date = Date.today(); // or some other date.
alert(date.add(-2).days());
Please ensure you use the latest build from svn (
http://www.datejs.com/
svn/).
Hope this helps.