# V6 beta ion-datetime as wheel

**URL:** <https://forum.ionicframework.com/t/v6-beta-ion-datetime-as-wheel/218189>\
**Category:** Ionic Framework\
**Created:** [December 8, 2021, 9:38pm UTC](https://forum.ionicframework.com/t/v6-beta-ion-datetime-as-wheel/218189 "2021-12-08T21:38:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![clickfwd](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@clickfwd](https://forum.ionicframework.com/u/clickfwd)\
**Post date:** [December 8, 2021, 9:38pm UTC](https://forum.ionicframework.com/t/v6-beta-ion-datetime-as-wheel/218189/1 "2021-12-08T21:38:56Z")

</div>

Is the presentation shown in the image below possible with v6 using ion-datetime?

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/7/3/73b885dfde9619136d9c7306de153c47d82921e6.png)

When you look at the date & time picker demo here [https://ionicframework.com/docs/next/](https://ionicframework.com/docs/next/) it shows like the above image. However, in my app it displays a full calendar.

I am using the code below which comes from the demo source [docs-demo/datetime.tsx at eb7dea5ee5557e12fde5aec631eb65be90afe1c7 · ionic-team/docs-demo · GitHub](https://github.com/ionic-team/docs-demo/blob/eb7dea5ee5557e12fde5aec631eb65be90afe1c7/src/components/datetime/datetime.tsx#L30)

```auto
<ion-datetime value="1990-02-19" placeholder="Select Date"></ion-datetime>

```

In case it makes a difference, I am using ionic vue

---

<div class="post-metadata">

**Author:** ![bchehraz](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bchehraz](https://forum.ionicframework.com/u/bchehraz)\
**Post date:** [December 8, 2021, 10:51pm UTC](https://forum.ionicframework.com/t/v6-beta-ion-datetime-as-wheel/218189/2 "2021-12-08T22:51:43Z")

</div>

Yeah from my experience, it seems like the demos have not been updated and are still in v5.

If you’re trying to use a wheel format for `ion-datetime` I don’t think it’s possible unless you use `ion-picker` and set the options to be date options ([Picker | Display Buttons and Columns for ion-picker on Ionic Apps](https://ionicframework.com/docs/next/api/picker)). Although this may not be a straightforward implementation.

---

<div class="post-metadata">

**Author:** ![clickfwd](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@clickfwd](https://forum.ionicframework.com/u/clickfwd)\
**Post date:** [December 8, 2021, 11:05pm UTC](https://forum.ionicframework.com/t/v6-beta-ion-datetime-as-wheel/218189/3 "2021-12-08T23:05:06Z")

</div>

Thanks @bchehraz

After spending a lot of time trying to figure this out I found this [GitHub - ionic-team/datetime-migration-samples: A sample repo with examples on how to migrate datetime in Ionic 5 to datetime in Ionic 6.](https://github.com/ionic-team/datetime-migration-samples)

So it looks like the UI has changed 100% for v6 and the new code to make something similar looks like this:

```auto
      <ion-item :button="true" id="open-datetime">
        <ion-label>Birthday</ion-label>
        
        <ion-text class="placeholder" v-if="formattedDate === undefined">Select a date</ion-text>
        <ion-text v-if="formattedDate !== undefined">{{ formattedDate }}</ion-text>
        
        <!-- See styles in global.css -->
        <ion-modal class="datetime-modal" trigger="open-datetime">
          <ion-content>
            <ion-datetime
              v-model="dateValue"
              :ionChange="formatDate()"
              :show-default-buttons="true"
            ></ion-datetime>
          </ion-content>
        </ion-modal>
      </ion-item>

```

Not the same, but close enough. It shows the calendar in a modal so it’s not as intrusive as having the entire calendar inline and if you play with the breakpoints in the modal you can show it as a bottom drawer.
