# Ionic v4 alertController input type date and placholder

**URL:** <https://forum.ionicframework.com/t/ionic-v4-alertcontroller-input-type-date-and-placholder/167145>\
**Category:** Ionic Framework\
**Created:** [June 25, 2019, 8:23am UTC](https://forum.ionicframework.com/t/ionic-v4-alertcontroller-input-type-date-and-placholder/167145 "2019-06-25T08:23:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninecmoi](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@ninecmoi](https://forum.ionicframework.com/u/ninecmoi)\
**Post date:** [June 25, 2019, 8:23am UTC](https://forum.ionicframework.com/t/ionic-v4-alertcontroller-input-type-date-and-placholder/167145/1 "2019-06-25T08:23:13Z")

</div>

Hi,

i’m trying to set default value Or placholder in alertCtrl ? Is it possible ?

this code is not working :

```auto
let today = new Date().toLocaleDateString();

....
inputs: [
          ....
            
          {
            name: "date",
            type: "date",
            value: today,
            placeholder: today
          },

```

Thanks,  
n
