ion datetime time current set
public date:any = new Date().toISOString();
...
<ion-datetime [(ngModel)]="date"
displayFormat="MMM DD, YYYY HH:mm"
formControlName="myDate">
</ion-datetime>
ion datetime time current set
public date:any = new Date().toISOString();
...
<ion-datetime [(ngModel)]="date"
displayFormat="MMM DD, YYYY HH:mm"
formControlName="myDate">
</ion-datetime>
ionic datepicker done
<ion-datetime displayFormat="h:mm a" doneText="Okay"></ion-datetime>
Datepicker ionic
import { DatePicker } from '@ionic-native/date-picker/ngx';
constructor(private datePicker: DatePicker) { }
...
this.datePicker.show({
date: new Date(),
mode: 'date',
androidTheme: this.datePicker.ANDROID_THEMES.THEME_HOLO_DARK
}).then(
date => console.log('Got date: ', date),
err => console.log('Error occurred while getting date: ', err)
);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us