# Open a the date picker by clicking a button?

**URL:** <https://forum.ionicframework.com/t/open-a-the-date-picker-by-clicking-a-button/19157>\
**Category:** ionic-v1\
**Created:** [March 15, 2015, 11:21pm UTC](https://forum.ionicframework.com/t/open-a-the-date-picker-by-clicking-a-button/19157 "2015-03-15T23:21:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SubEffect](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/subeffect/32/65247_2.png) [@SubEffect](https://forum.ionicframework.com/u/SubEffect)\
**Post date:** [March 15, 2015, 11:21pm UTC](https://forum.ionicframework.com/t/open-a-the-date-picker-by-clicking-a-button/19157/1 "2015-03-15T23:21:08Z")

</div>

I’m using a tabbed interface and I either want:

A date field in the header on the top right, which I cannot seem to get right

or…

A button with the date on it in the top right, that opens a date picker when clicked. I’ve already got the button working in that the text is bound to a date model.

I want to change the date and for that change to trigger a DB lookup of the data for the new date, which is then all loaded back into the forms that are in each tab.

Anyone any ideas?

---

<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:48am UTC](https://forum.ionicframework.com/t/open-a-the-date-picker-by-clicking-a-button/19157/2 "2015-04-23T05:48:29Z")

</div>

Hi @SubEffect, I have created both time picker and date picker for ionic frame works.Try this once.  
No additional dependencies like jQuery is not required. Hope this might help you. Please have a look at the below links to check out the demos and bower components.

[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)
