function
getDateBeforeParamDate(param,n){
var
result =
new
Date();
if
(param==
null
){
param = result;
}
if
(n==
null
){
n=0;
}
param =
new
Date(param);
millSecond = param.valueOf();
millSecond = millSecond - n*24*3600*1000;
result =
new
Date(millSecond);
result = getTodayFormatea(result);
return
result;
}
function
getDateNextParamDate(param,n){
var
result =
new
Date();
if
(param==
null
){
param = result;
}
if
(n==
null
){
n=0;
}
param =
new
Date(param);
millSecond = param.valueOf();
millSecond = millSecond + n*24*3600*1000;
result =
new
Date(millSecond);
result = getTodayFormatea(result);
return
result;
}