Hi guys. A newbie question here. I have a delivery date which I have to make a critical path for so for example:
Delivery Date 31/12/12
Production Date 30/9/12
Delivery Date 30/6/12
Order Date 31/5/12
I have the number of days each date change uses in a global variable - but I do not have a clue how to set the fields to each of these dates. I have tried:
// VFP2Servoy Toolkit
// Function : GODATE()
// Author : Juan Antonio Santana Medina
/**
* Returns a new Date adding nDays
*
* @param {Date} dDate - Date to add/substract the nDays
* @param {Number} nDays - Number of days to add/substract to dDate
*/
function GODATE(dDate, nDays){
var dTemp = new Date(dDate.valueOf());
return new Date(dTemp.setDate(dTemp.getDate() + nDays));
}