# Input type=date woes

**URL:** <https://forum.ionicframework.com/t/input-type-date-woes/5406>\
**Category:** ionic-v1\
**Created:** [June 9, 2014, 3:40pm UTC](https://forum.ionicframework.com/t/input-type-date-woes/5406 "2014-06-09T15:40:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkrocker](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@monkrocker](https://forum.ionicframework.com/u/monkrocker)\
**Post date:** [June 9, 2014, 3:40pm UTC](https://forum.ionicframework.com/t/input-type-date-woes/5406/1 "2014-06-09T15:40:28Z")

</div>

What on earth is the proper way to use input type=date?

I have an Ionic app which is currently being used on iOS only, so I don’t need to support other browsers or anything.

I have a scope level object:

```
$scope.data.todo = {
    title: "My To Do",
    desc: "Do this and this and that and this too."
    dueDate = ????? <---- what on earth goes here?
};

```

My first issue was even getting a value to appear in the field BEFORE you tapped it the first time. I solved that with:

```
ng-init="data.todo.dueDate = data.todayString | date:'yyyy-MM-dd'"

```

But - the model never updates. $scope.data.todo.dueDate never changes from an initial value. I have futzed about with ISO formatted strings (value disappears from box), directives, filters, etc. Nothing works. It looks like Angular 1.3 has legitimate support for input type=date, but it’s still in beta and I can’t do that in a production app. Been scouring for a possible release data, but haven’t seen one. The latest beta is beta 11 and that was June 6th. Hopefully soon, but until then, I am thoroughly stumped.

Help? Anyone?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 10, 2014, 1:09pm UTC](https://forum.ionicframework.com/t/input-type-date-woes/5406/2 "2014-06-10T13:09:02Z")

</div>

I put this together, not sure if it will help thought, but the model is updating for me.

> **[Input type date](https://codepen.io/mhartington/pen/laeLn)**
>
> A barebones starter template for Ionic development...

---

<div class="post-metadata">

**Author:** ![smcdavid](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/smcdavid/32/94327_2.png) [@smcdavid](https://forum.ionicframework.com/u/smcdavid)\
**Post date:** [December 2, 2015, 3:50pm UTC](https://forum.ionicframework.com/t/input-type-date-woes/5406/4 "2015-12-02T15:50:01Z")

</div>

I don’t know if you are still having trouble with this, I know we are having similar trouble, but for iOS the date may need to be converted to an ISO String. [Stack Overflow Reference](http://stackoverflow.com/a/13691993/2280748)

---

<div class="post-metadata">

**Author:** ![smcdavid](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/smcdavid/32/94327_2.png) [@smcdavid](https://forum.ionicframework.com/u/smcdavid)\
**Post date:** [December 2, 2015, 6:08pm UTC](https://forum.ionicframework.com/t/input-type-date-woes/5406/5 "2015-12-02T18:08:57Z")

</div>

We tested setting the value to `new Date(ourDateInMs).toISOString());` in our application and it worked.
