Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

How to open the date picker at a particular time instead of current time? #115

Open
abhishekthakur1995 opened this issue Jul 13, 2017 · 1 comment

Comments

@abhishekthakur1995
Copy link

is there any way to open the picker at a particular time say 9:30 AM instead of the current time when it is clicked for the first time.

@abhishekrathore
Copy link

Yes,
You have to pass date into proper date object in "ngModel" of ion-datetime-picker.
because ion-datetime-picker library checks that provided date is in Date format or not (basically check that instanceof Date is True or not). According to date it will assign date/time to calender.

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