# Using a date input with AlertController - Android date format issue

**URL:** <https://forum.ionicframework.com/t/using-a-date-input-with-alertcontroller-android-date-format-issue/223538>\
**Category:** Ionic Angular\
**Created:** [May 24, 2022, 1:00pm UTC](https://forum.ionicframework.com/t/using-a-date-input-with-alertcontroller-android-date-format-issue/223538 "2022-05-24T13:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [May 24, 2022, 1:00pm UTC](https://forum.ionicframework.com/t/using-a-date-input-with-alertcontroller-android-date-format-issue/223538/1 "2022-05-24T13:00:49Z")

</div>

In our Ionic 6 app we have a bit of code that uses AlertController to prompt the user for a date:

```auto
const alert = await this.alertController.create({
      subHeader: `Please enter ${item.childName}'s date of birth:`,
      inputs: [
        {
          name: "dob",
          type: "date",
        },
      ]

```

On some Android test devices once we have selected the date from the calendar picker it is displayed correctly in the Alert’s input box in dd/mm/yyy format but on many other Android devices we see it displayed in American format (mm/dd/yy). On all iOS devices we are seeing the dd/mm/yy format which is what we want. Does anyone have any idea what might affect this display format on Android devices? (nothing I have changed in the device settings seems to have any effect)
