# Ionic-datepicker Bower component for Ionic framework applications

**URL:** <https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516>\
**Category:** ionic-v1\
**Created:** [April 23, 2015, 5:18am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516 "2015-04-23T05:18:46Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 9, 2015, 11:15am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/21 "2015-06-09T11:15:50Z")

</div>

Awesome component, working fine here, just what i was looking for, thank´s Rajeshwar

---

<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:** [June 9, 2015, 11:27am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/22 "2015-06-09T11:27:04Z")

</div>

Thank a lot @angelorigo 😄

---

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 12, 2015, 2:53pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/23 "2015-06-12T14:53:02Z")

</div>

Hi!

Newbie question :  
How can i get the value of the choosen date inside my controller ?  
In the view i see {{currentDate}} working, i do not have the same value inside the controller by using $scope.currentDate.

I just want to get this value after a form submit, how can it be done ?

Thank´s in advance

---

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 12, 2015, 4:51pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/24 "2015-06-12T16:51:43Z")

</div>

Not sure if it is the best way, but it works : {{ data.choosenDate = currentDate; }} declare this on the view and it is available on the controller on $scope.data.

---

<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:** [June 13, 2015, 9:57am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/25 "2015-06-13T09:57:03Z")

</div>

Hi Everyone,  
I have released a new version **v0.3.0** of `ionic-datepicker` with some additional functionalities.  
a) User can select the years and months using the dropdown.  
b) A callback function is added.

Please have a look at these new features.

---

<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:** [June 13, 2015, 9:57am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/26 "2015-06-13T09:57:58Z")

</div>

Hi @angelorigo, Please install `ionic-datepicker` v0.3.0. Your issue will get resolved.

---

<div class="post-metadata">

**Author:** ![f9073341](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@f9073341](https://forum.ionicframework.com/u/f9073341)\
**Post date:** [June 14, 2015, 12:45pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/27 "2015-06-14T12:45:02Z")

</div>

Hi,

This was due to my own lack of knowledge of how LocalStorage stores dates.

Instead of storing in LocalStorage as a standard Date object, I store is as:

```
this.currentDate.getTime();

```

Then, when getting the date back out of LocalStorage I do:

```
var myDate = new Date(parseInt(storedDate,10));
```

---

<div class="post-metadata">

**Author:** ![chalax](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chalax](https://forum.ionicframework.com/u/chalax)\
**Post date:** [June 15, 2015, 3:23am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/28 "2015-06-15T03:23:55Z")

</div>

hi @rajeshwarpatlolla the project and the idea is awesome. i want to use the ionic-datepicker but unfortunately i keep getting error while install it from bower, here is the error message.  
 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/3/38ea1f9cf99979499d0198d3ad56687f89d30a83.png)  
any suggestion?

---

<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:** [June 15, 2015, 4:46am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/29 "2015-06-15T04:46:34Z")

</div>

I tried installing this component, and i am able to install it correctly. Can you make sure you have the correct **ssh** key set up in your machine.

---

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 15, 2015, 1:01pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/30 "2015-06-15T13:01:32Z")

</div>

Thank´s Rajesh i just install and it is working fine. One little bug i have found is that the close button does not close the ionicpopup. What could it be ? the error is :

TypeError: a.callback is not a function  
at e.show.buttons.onTap (ionic-datepicker.js:1)  
at Scope.extend.$buttonTapped (ionic.bundle.js:45347)  
at $parseFunctionCall (ionic.bundle.js:21044)  
at ionic.bundle.js:53458  
at Scope.$eval (ionic.bundle.js:23100)  
at Scope.$apply (ionic.bundle.js:23199)  
at HTMLButtonElement. (ionic.bundle.js:53457)  
at HTMLButtonElement.eventHandler (ionic.bundle.js:11713)  
at triggerMouseEvent (ionic.bundle.js:2863)  
at tapClick (ionic.bundle.js:2852)

---

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 15, 2015, 1:05pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/31 "2015-06-15T13:05:11Z")

</div>

I am using ionic 1.5.0. The month selector feature helps a lot thank you.

---

<div class="post-metadata">

**Author:** ![angelorigo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/angelorigo/32/12625_2.png) [@angelorigo](https://forum.ionicframework.com/u/angelorigo)\
**Post date:** [June 15, 2015, 1:43pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/32 "2015-06-15T13:43:21Z")

</div>

Just follow the instructions from [https://github.com/rajeshwarpatlolla/ionic-datepicker](https://github.com/rajeshwarpatlolla/ionic-datepicker) everything working fine! thank´s for this great component.

---

<div class="post-metadata">

**Author:** ![peter\_logan](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@peter\_logan](https://forum.ionicframework.com/u/peter_logan)\
**Post date:** [June 26, 2015, 8:22pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/33 "2015-06-26T20:22:42Z")

</div>

Hi @rajeshwarpatlolla, nice control. Thanks for the hard work. I have a question. I installed the latest version with bower. It works fine, but I had 2 issues, one of which I solved. The popup was too narrow and too short causing the 2 digit date cells to have the 2 digits on top of each other instead of next to each other. Also the popup body was scrolling when there were 6 rows. solved it with some css in my app css file.

.popup-container .popup {  
width: 400px;  
}

.popup-body {  
height: 360px;  
}

I am also having a problem with the month and year select boxes. They open and display the lists, but the selected month and year are not shown. the month and year change, so functionally it is working, just cannot see the selected month and year. Can you help?

---

<div class="post-metadata">

**Author:** ![campsjos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/campsjos/32/90562_2.png) [@campsjos](https://forum.ionicframework.com/u/campsjos)\
**Post date:** [July 1, 2015, 10:14am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/34 "2015-07-01T10:14:10Z")

</div>

Hi, is possible to disable dates with this component? Not only past dates. Thanks.

---

<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:** [July 1, 2015, 10:39am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/35 "2015-07-01T10:39:50Z")

</div>

For now it is only possible to disable previous dates. I am planning to disable future dates in the next release. But disabling particular dates is not yet in the task list.

---

<div class="post-metadata">

**Author:** ![campsjos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/campsjos/32/90562_2.png) [@campsjos](https://forum.ionicframework.com/u/campsjos)\
**Post date:** [July 1, 2015, 10:45am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/36 "2015-07-01T10:45:46Z")

</div>

Ok, if I have some time and with your permission I’ll fork your component from GitHub and try to add this feature 🙂

---

<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:** [July 1, 2015, 11:30am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/37 "2015-07-01T11:30:27Z")

</div>

You can. That would be helpful 😄

---

<div class="post-metadata">

**Author:** ![campsjos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/campsjos/32/90562_2.png) [@campsjos](https://forum.ionicframework.com/u/campsjos)\
**Post date:** [July 1, 2015, 3:39pm UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/38 "2015-07-01T15:39:53Z")

</div>

Pull request [#31](https://github.com/rajeshwarpatlolla/ionic-datepicker/pull/31) - Added feature for disabling specific dates

---

<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:** [July 3, 2015, 8:49am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/39 "2015-07-03T08:49:23Z")

</div>

Hi Guys, I released a new version of `ionic-datepicker`(0.4.0). Few bugs are fixed and few new features are added. Please use this new version.

---

<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:** [July 20, 2015, 6:50am UTC](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516/40 "2015-07-20T06:50:18Z")

</div>

Hi Guys, I released a new version of `ionic-datepicker(v0.5.0)`. CSS classes for customisation are added and feature for disabling specific dates is also added.

[Previous page](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516.md?page=1)

[Next page](https://forum.ionicframework.com/t/ionic-datepicker-bower-component-for-ionic-framework-applications/21516.md?page=3)
