Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a way to set default value to ion-datetime picker #12055

Closed
kceiw opened this issue Jun 15, 2017 · 3 comments
Closed

Please provide a way to set default value to ion-datetime picker #12055

kceiw opened this issue Jun 15, 2017 · 3 comments

Comments

@kceiw
Copy link

kceiw commented Jun 15, 2017

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ x ] 2.x
[ x ] 3.x

I'm submitting a ... (check one with "x")
[ ] bug report
[ x ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

When I click the component ion-datetime, it opens the picker with the value set to the first day of the current year if max is not set. or the first day of the year of the value set to max.

Expected behavior:

Please provide a way to set the default value of the picker. In my case, I need to set a max value to ion-datetime and want to give a day as the start point for the user to pick a date. But with the current framework, that's impossible. Actually I have two ion-datetime for start date and end date. So when the user picks a start time, I want the default value for the picker for the end date to be the start date.

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

insert the output from ionic info here
@trakhimenok
Copy link

Duplicate of #9846?

@kceiw
Copy link
Author

kceiw commented Jun 17, 2017

Yes. It's partially dup to #9846 also describes the bug in #10710.
I'll close this issue track it in #9846

@kceiw kceiw closed this as completed Jun 17, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants