I'm using ngx-bootstrap datepicker in the project.
Needed only date and month to be selected as the below image/link
Sample Image To show only date and month like this I needed
I searched a lot and most examples are showing month and year using minMode of BsDatePickerConfig. and I tried minMode to 'day'. It shows a normal day/month/year calendar view. But I need only date and month, not year
Below is my code:
<div class="row">
<div class="col-xs-12 col-12 col-md-4 form-group">
<input
type="text"
placeholder="Datepicker"
[bsConfig]="datePickerConfig"
class="form-control"
bsDatepicker
/>
</div>
</div>
and component.ts file
datePickerConfig: Partial<BsDatepickerConfig>;
minMode: BsDatepickerViewMode = 'day';
constructor() {
this.datePickerConfig = Object.assign(
{},
{
containerClass: 'theme-dark-blue',
showWeekNumbers: false,
minMode: this.minMode,
}
);
}
Is there any way to config the ngx-bootstrap datepicker like my question? Or Suggest any alternative date-picker which allows this functionality.
Thanks in advance for your time...