Best way to input date in a modal popup

I’m using AlertController with inputs to implement a simple “Add record”. One of the fields should be a date but the following just displays a normal text field.

          name: 'dateSold',
          type: 'date'

If date types are not yet implemented in AlertController, should I use a ModalController and put a form in it (with a date input)? Thanks.

Whoops! I just tried this in Chrome and it shows a beautiful datepicker. I was in Firefox earlier.