Datepicker

bs-datepicker is a date field with a month-grid popup and two-way [(selectedDate)] binding and an optional [disableDateFn] for blocking specific dates. With JavaScript off it is a native date field.

Basic usage

The selected date is: Nov 21, 2026
  
    
      
        <bs-datepicker [(selectedDate)]="selectedDate"></bs-datepicker>
        
    
  
    
      
        import { Component, signal } from '@angular/core';
        
    
      
        import { BsDatepickerComponent } from '@mintplayer/ng-bootstrap/datepicker';
        
    
      
        
        
    
      
        @Component({
        
    
      
          selector: 'my-datepicker-demo',
        
    
      
          templateUrl: './my-datepicker-demo.component.html',
        
    
      
          imports: [BsDatepickerComponent],
        
    
      
        })
        
    
      
        export class MyDatepickerDemoComponent {
        
    
      
          protected readonly selectedDate = signal(new Date());
        
    
      
        }
        
    

Angular forms

Template-driven [(ngModel)] and reactive [formControl] both bind through the component's ControlValueAccessor: the value, the disabled state, and touched when focus leaves.

Template-driven

Value: "2026-11-21T19:27:44.536Z"
dirty: false · touched: false · disabled: false

Reactive

Value: "2026-11-21T19:27:44.536Z"
dirty: false · touched: false · disabled: false
  
    
      
        <!-- template-driven (FormsModule) -->
        
    
      
        <bs-datepicker [(ngModel)]="value"></bs-datepicker>
        
    
      
        
        
    
      
        <!-- reactive (ReactiveFormsModule): control = new FormControl(...) -->
        
    
      
        <bs-datepicker [formControl]="control"></bs-datepicker>