}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
+ arrival = d + '-' + m + '-' + y;
+ arrival.toString();
+ arrival = arrival.replace(/\//g, "");
+ arrival = parseInt(arrival, 10);
minDays = y + '-' + m + '-' + dd;
$("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
-
- arrival = d + '-' + m + '-' + y;
- arrival.toString();
- arrival = arrival.replace(/\//g, "");
- arrival = parseInt(arrival, 10);
//$("#departOff").val(requiredDate);
}
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
dd = currentDate.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
+ if (dd <= 9) {
+ dd = '0' + dd;
}
d = currentDate.getDate();
if (d <= 9) {
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
departure = d + '-' + m + '-' + y;
+ alert(departure);
departure.toString();
departure = departure.replace(/\//g, "");
departure = parseInt(departure, 10);
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
+ arrival = d + '-' + m + '-' + y;
+ arrival.toString();
+ arrival = arrival.replace(/\//g, "");
+ arrival = parseInt(arrival, 10);
minDays = y + '-' + m + '-' + dd;
$("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
-
- arrival = d + '-' + m + '-' + y;
- arrival.toString();
- arrival = arrival.replace(/\//g, "");
- arrival = parseInt(arrival, 10);
//$("#departOff").val(requiredDate);
}
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
dd = currentDate.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
+ if (dd <= 9) {
+ dd = '0' + dd;
}
d = currentDate.getDate();
if (d <= 9) {
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
departure = d + '-' + m + '-' + y;
+ alert(departure);
departure.toString();
departure = departure.replace(/\//g, "");
departure = parseInt(departure, 10);