How to creat a filter based on month


#1

i want to create a filter user select a month from drop down and user show the value month wise.please help me anyone.


#2

Maybe you could use this example. You can add all months you want, and its wanted value. In this case, value is 1 = January, 2= February, …

<h3>Value selected: {{month}}</h3>
<ion-item>
  <ion-label>Select a month</ion-label>
  <ion-select [(ngModel)]="month">
    <ion-option value="1">January</ion-option>
    <ion-option value="2">February</ion-option>
    <ion-option value="3">Mars</ion-option>
  </ion-select>
</ion-item>


#3

my data format is dd/mm/yyyy. like that 10-11-2017


#4

I need more information. Is it a question to how use ion-select?
Do you know what a ([ngModel)] is?
Or problem is with the displayed month text.