# Form Date Picker

**URL:** <https://forum.ionicframework.com/t/form-date-picker/182>\
**Category:** ionic-v1\
**Created:** [December 8, 2013, 4:21pm UTC](https://forum.ionicframework.com/t/form-date-picker/182 "2013-12-08T16:21:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanhill](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/seanhill/32/105765_2.png) [@seanhill](https://forum.ionicframework.com/u/seanhill)\
**Post date:** [December 8, 2013, 4:21pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/1 "2013-12-08T16:21:50Z")

</div>

Is there any support for a datepicker yet? Thanks.

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 8, 2013, 8:42pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/2 "2013-12-08T20:42:23Z")

</div>

Nothing yet, but you can use the built in `<input type="date">` which will open in a native date picker. Does that help?

---

<div class="post-metadata">

**Author:** ![seanhill](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/seanhill/32/105765_2.png) [@seanhill](https://forum.ionicframework.com/u/seanhill)\
**Post date:** [December 9, 2013, 5:15am UTC](https://forum.ionicframework.com/t/form-date-picker/182/3 "2013-12-09T05:15:52Z")

</div>

Yeah that was perfect thanks!

---

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [December 16, 2013, 2:24pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/4 "2013-12-16T14:24:06Z")

</div>

Have you got a solution for the darkened datepicker in iOS7? I think the document behind the datepicker is black and the transparency of the datepicker is making it look dark…

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 16, 2013, 3:39pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/5 "2013-12-16T15:39:11Z")

</div>

Hey @gregorypratt I’m not seeing that on my end, do you have a screenshot or sample code? Thanks.

---

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [December 16, 2013, 4:05pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/6 "2013-12-16T16:05:10Z")

</div>

[http://i.imgur.com/D26HJDp.png](http://i.imgur.com/D26HJDp.png) - this might help explain! I suspect it might be out of your control though!

---

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [December 16, 2013, 4:12pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/7 "2013-12-16T16:12:30Z")

</div>

Actually this might solve my problem: [https://build.phonegap.com/plugins/332](https://build.phonegap.com/plugins/332)

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 16, 2013, 5:50pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/8 "2013-12-16T17:50:50Z")

</div>

ah, I see. You could also just try setting body and such background colors:

```css
body, html { background-color: #fff; width: 100%; height: 100%; }

```

---

<div class="post-metadata">

**Author:** ![corypedia](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@corypedia](https://forum.ionicframework.com/u/corypedia)\
**Post date:** [March 11, 2014, 7:01pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/9 "2014-03-11T19:01:51Z")

</div>

using the `date` input type doesn’t appear to work in Android. At least 4.3-.

---

<div class="post-metadata">

**Author:** ![pradeepmogi](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pradeepmogi](https://forum.ionicframework.com/u/pradeepmogi)\
**Post date:** [June 23, 2014, 12:23pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/10 "2014-06-23T12:23:38Z")

</div>

I’'am also facing same issue. Any body got the solution for this issue  
using the date input type doesn’t appear to work in Android. At least 4.3

---

<div class="post-metadata">

**Author:** ![mica](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mica](https://forum.ionicframework.com/u/mica)\
**Post date:** [July 28, 2014, 7:12am UTC](https://forum.ionicframework.com/t/form-date-picker/182/11 "2014-07-28T07:12:18Z")

</div>

The ios-behaviour (to show a datepicker for input type =“date”) is a standard ios-webstackbehaviour and its independent from ionic. Android doesn’t have such a implementation out of box. So you have to use a Plugin to get things work like you would expect it on ios. I use this one, but there are couple of other DatePickers out there:

> **[mrfoh/cordova-datepicker-plugin](https://github.com/mrfoh/cordova-datepicker-plugin)**
>
> cordova-datepicker-plugin - Datepicker for Apache Cordova

---

<div class="post-metadata">

**Author:** ![Lomas](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@Lomas](https://forum.ionicframework.com/u/Lomas)\
**Post date:** [July 28, 2014, 8:49am UTC](https://forum.ionicframework.com/t/form-date-picker/182/12 "2014-07-28T08:49:23Z")

</div>

Hello,  
I had also faced same problem in android. But now i get rid of it using angular-datepicker.  
I have created demo app in github that use angularjs datepicker. take a look at it…it may help you…  
[https://github.com/joshilomas/DatePicker-IonicApp](https://github.com/joshilomas/DatePicker-IonicApp)

Regards,  
Lomas Joshi

---

<div class="post-metadata">

**Author:** ![johnsonqu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@johnsonqu](https://forum.ionicframework.com/u/johnsonqu)\
**Post date:** [January 30, 2015, 8:43am UTC](https://forum.ionicframework.com/t/form-date-picker/182/13 "2015-01-30T08:43:54Z")

</div>

Hi Lomas,

It looks great. Any plan to include time picker?

---

<div class="post-metadata">

**Author:** ![zenocon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zenocon/32/75472_2.png) [@zenocon](https://forum.ionicframework.com/u/zenocon)\
**Post date:** [January 30, 2015, 8:00pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/14 "2015-01-30T20:00:42Z")

</div>

What’s the story with Android `<input type="date">` ? I’m also on Android 4.3 and this is how it looks for me:

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/0/0c36e95791f78d5c31a754d98ba00e1b105568c0.png)

The date picker input type defaults to a regular text input, plus the label disappears – no idea why? Seems OK in Android simulators e.g. Nexus 5, but this is on a real device and it looks horrible and doesn’t work correctly.

_Ah, the joys of platform woes…_

Does anyone know why `<input type="date">` doesn’t work on Android 4.3, and is there a workaround?

Also,

- Why did my label disappear
- Why is the `<input type="range">` all screwy with the layout – whereas on Nexus 5 simulator it looks good?

Here’s the bit of markup for this page, some of the inline styles were [workarounds for issues on iOS](http://forum.ionicframework.com/t/form-element-alignment-on-ios/16660)

```auto
<div class="list">
     <label class="item item-input item-select item-stacked-label filter-select-label" style="padding-top: 10px; padding-bottom: 10px;">
        <span class="input-label filter-select-span">Location</span>
        <select
          class="filter-select"
          ng-model='location',
          ng-options='location as location.name + ", " + location.city for location in locations | orderBy:"name" track by location.location_key'>
        </select>
      </label>
      <label class="item item-input filter-date-label" style="padding-right: 25px;">
        <span class="input-label filter-date-span">Date</span>
        <input class="filter-date" type="date" ng-model='range.endDate'>
      </label>
      <label class="item item-input filter-range-label">
        <span class="input-label filter-range-span">Days:<sup class='asterisk'>*</sup> {{days}}</span>
        <input class="filter-range" type="range" name="days" min="0" max="30" value="7" ng-model="days" style='margin-right: 30px;'>
      </label>

      <p class="padding small">
        <span class="small"><em class='asterisk'>*</em>How many days prior to the date you have chosen show in the chart.</span>
      </p>
    </div>

```

I guess the more apt question here is: **does ionic have .platform-specific css classes that I can use when on a particular platform, b/c it looks like I’m going to be spending a good deal of time tweaking this css for the different platforms and devices** …ugh.

---

<div class="post-metadata">

**Author:** ![goodbytes](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/goodbytes/32/82678_2.png) [@goodbytes](https://forum.ionicframework.com/u/goodbytes)\
**Post date:** [April 5, 2015, 5:00pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/15 "2015-04-05T17:00:14Z")

</div>

The reason for this is that android 4.3 doesn’t support input type=“date” fields. Using a separate plugin or angular directive seems like a solution but I’ve yet to try that.

[http://caniuse.com/#feat=input-datetime](http://caniuse.com/#feat=input-datetime)

![image](https://global.discourse-cdn.com/ionicframework/original/2X/1/165b8652c18e59a937fefa319894d22295d943fe.png)

---

<div class="post-metadata">

**Author:** ![xorox](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/xorox/32/10957_2.png) [@xorox](https://forum.ionicframework.com/u/xorox)\
**Post date:** [April 17, 2015, 8:42pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/16 "2015-04-17T20:42:32Z")

</div>

I just started to develop an iOS likewise date-slider for Ionic!

Looks like this:  
[https://xorox.io/wp-content/uploads/2015/04/ionic-ios-dateslider-400x280.jpg](https://xorox.io/wp-content/uploads/2015/04/ionic-ios-dateslider-400x280.jpg)

Free to use. Find the repo here: [https://github.com/xorox/ionic-ios-date-slider](https://github.com/xorox/ionic-ios-date-slider)

---

<div class="post-metadata">

**Author:** ![rajeshwarpatlolla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rajeshwarpatlolla/32/70759_2.png) [@rajeshwarpatlolla](https://forum.ionicframework.com/u/rajeshwarpatlolla)\
**Post date:** [April 23, 2015, 5:39am UTC](https://forum.ionicframework.com/t/form-date-picker/182/17 "2015-04-23T05:39:26Z")

</div>

Hi @seanhill, I have created both time picker and date picker for ionic frame works.  
This may help you. Please have a look at the below links.

[ionic-timepicker demo](http://forum.ionicframework.com/t/time-picker-for-ionic-framework/13409)

[ionic-timepicker Bower component](http://forum.ionicframework.com/t/ionic-timepicker-bower-component/17929/2)

[ionic-datepicker demo](http://forum.ionicframework.com/t/a-date-picker-for-ionic-framework-applications/21515)

[ionic-datepicker Bower component](http://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516)

---

<div class="post-metadata">

**Author:** ![pjusto](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@pjusto](https://forum.ionicframework.com/u/pjusto)\
**Post date:** [April 23, 2015, 10:49am UTC](https://forum.ionicframework.com/t/form-date-picker/182/18 "2015-04-23T10:49:14Z")

</div>

Native datepicker / timepicker allways opens with current date/time . it is possible to make it open with ng-model value?

---

<div class="post-metadata">

**Author:** ![Victor](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@Victor](https://forum.ionicframework.com/u/Victor)\
**Post date:** [June 10, 2015, 2:31pm UTC](https://forum.ionicframework.com/t/form-date-picker/182/19 "2015-06-10T14:31:51Z")

</div>

I have forked Rajesh’s datepicker and modified it to with a dropdown for month and year

> **[victor-ponce/ionic-datepicker](https://github.com/victor-ponce/ionic-datepicker)**
>
> 'ionic-datepicker' bower component for ionic framework applications

---

<div class="post-metadata">

**Author:** ![godofrayer](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@godofrayer](https://forum.ionicframework.com/u/godofrayer)\
**Post date:** [June 19, 2015, 2:06am UTC](https://forum.ionicframework.com/t/form-date-picker/182/20 "2015-06-19T02:06:30Z")

</div>

i cant click the month and year to change it

[Next page](https://forum.ionicframework.com/t/form-date-picker/182.md?page=2)
