|
@@ -275,11 +275,11 @@ export class DvrEntryComponent implements OnInit, OnDestroy {
|
|
}
|
|
}
|
|
console.log("date====>", date);
|
|
console.log("date====>", date);
|
|
|
|
|
|
- if (date < 10) {
|
|
|
|
- dd1 = '0' + date;
|
|
|
|
- } else {
|
|
|
|
- dd1 = date;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (date < 10) {
|
|
|
|
+ // dd1 = '0' + date;
|
|
|
|
+ // } else {
|
|
|
|
+ // dd1 = date;
|
|
|
|
+ // }
|
|
|
|
|
|
console.log(yyyy - 1);
|
|
console.log(yyyy - 1);
|
|
|
|
|
|
@@ -288,11 +288,9 @@ export class DvrEntryComponent implements OnInit, OnDestroy {
|
|
yyyy = yyyy - 1;
|
|
yyyy = yyyy - 1;
|
|
}
|
|
}
|
|
|
|
|
|
- console.log("dd1-------->", dd1)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
// this.mincurrent_date = yyyy + '-' + mm + '-' + dd1;
|
|
// this.mincurrent_date = yyyy + '-' + mm + '-' + dd1;
|
|
- this.mincurrent_date = yyyy + '-' + min_mm + '-' + dd1;
|
|
|
|
|
|
+ // this.mincurrent_date = yyyy + '-' + min_mm + '-' + dd1;
|
|
|
|
+ this.mincurrent_date = yyyy + '-' + min_mm + '-' + date;
|
|
|
|
|
|
console.log("min date------>", this.mincurrent_date);
|
|
console.log("min date------>", this.mincurrent_date);
|
|
document.getElementById("Date").setAttribute("min", this.mincurrent_date);
|
|
document.getElementById("Date").setAttribute("min", this.mincurrent_date);
|