Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70910

Configure this date picker language at application level

$
0
0

@t_amiryan wrote:

Hey.

Is there any way to customize the language of native DatePicker directly from the app.
My app supports two languages and I would like to change the month names to german or english respectively.
It is changed when the language of phone is changed only…

chooseDate(mode: string, keyname: string, oldDate: boolean) {
this.datePicker.show({
date: new Date(),
mode: mode,
allowOldDates: oldDate,
minDate: this.getNowAndAdd(2),
okText: this.commonServices.okText,
cancelText: this.commonServices.cancelText,
androidTheme: 0
})
.then(date => {
this.filterDate(date);
this.wasteServiceForm.patchValue({ [keyname]: this.date })
},
err => console.log("Error occurred while getting date: ", err)
);
}

Thanks beforehand.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>