Hello,
Can anyone tell me that how to get calendar view for datepicker in IONIC 3 which can be used for android, iOS and desktop?
Hello,
Can anyone tell me that how to get calendar view for datepicker in IONIC 3 which can be used for android, iOS and desktop?
<button style="width:350px;background-color:white;color:black;" item-right ion-button class="positioButton" *ngIf="searchPlaceHolder=='Fecha'">
<i icon-medium class=" icon-calendar"></i>
<span *ngIf="dateOfevent" ></span>
<ion-datetime displayFormat="DD MMM YYYY" (ionChange)="fecha()" pickerFormat="DD MMM YYYY" [(ngModel)]="dateOfevent" cancelText ="Cancelar" doneText="Ok"></ion-datetime>
</button>
variable global -> dateOfevent…
dateOfevent:string= new Date().toISOString();
//— and function “ionChangue=‘fecha’”.
//-----selected
fecha () {
this.texto =this.dateOfevent.substr(0,10);
console.log("Fecha seleccionada ", this.dateOfevent.substr(0,10));
}
Thanks for the reply.
I am getting a datepicker view like below snapshot.
But Is there any way to get view something like below?
yes, use this:
I just published one for Ionic 3 if anyone is interested: