Search these areas:
Support Forums
Product Info

-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Data Analysis
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support

Script Library

  Add a day to a date
  chubbard posted this script:
  // given any date (thedate), add some number of days and return that date.
function AddXDays(thedate, numOfDays) {
var curDate = new Date(thedate);
curDate += (1000*60*60*24) * numOfDays;
return curDate;

I've used this script in many apps.  For example to get yesterday's date (numOfDays = -1), or getting next week's date (numOfDays = 7).
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us