|
|
@@ -91,8 +91,9 @@ export class CalculatorComponent implements HsPanelComponent, OnInit {
|
|
|
}
|
|
|
|
|
|
updateSelectedDate(value: NgbDateStruct) {
|
|
|
- this.calcService.selectedDate =
|
|
|
- value.year + '-' + value.month + '-' + value.day;
|
|
|
+ this.calcService.selectedDate = `${value.year}-${
|
|
|
+ value.month < 10 ? '0' : ''
|
|
|
+ }${value.month}-${value.day < 10 ? '0' : ''}${value.day}`;
|
|
|
}
|
|
|
|
|
|
hasDataAvailable(date: NgbDateStruct): boolean {
|