Hello,
Is there any function which can give a difference of the number of days or number of weeks in appery.io??
I am using this in the appery.oi server code to calculate the date +280 days from a particular date
Objective : making a service to be called on button click (To get a date as Input then
-adding 280 days to the input date and return the value in another field
-adding 10 weeks to the same input date and return in another field.
var now = new Date();
var value = new Date(input.getTime() + 24192000000);
// trying to add milliseconds in 280 days but is it possible to add number of days directly to the input date ?
// format as JSON and return the response
response.success(JSON.stringify({
result: value
}), "application/json");
PS:This is my first application and I am giving it a try to learn appery.io.