currentDate = this.value;
currentDate = new Date(currentDate);
d = currentDate.getDate();
+ if (d <= 9) {
+ d = '0' + 9;
+ }
m = currentDate.getMonth() + 1;
+ if (m <= 9) {
+ m = '0' + m;
+ }
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
});
currentDate = this.value;
currentDate = new Date(currentDate);
d = currentDate.getDate();
+ if (d <= 9) {
+ d = '0' + 9;
+ }
m = currentDate.getMonth() + 1;
+ if (m <= 9) {
+ m = '0' + m;
+ }
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
});