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

Setting today as the min date and current time as min time in datepicker and time picker #136

Open
ghost opened this issue Aug 28, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 28, 2017

I am trying to set today as the min date and current time as min time in datepicker and time picker but am not able to do so..
Please look into it..!!

@nehakadam
Copy link
Owner

Please follow examples - Set Current Date as Minimum Date and Set Current Time as Minimum Time.

If you can not do so specify which date format you are using so I can give you a code or check if there is any issue with a particular date format you are using.

@ghost
Copy link
Author

ghost commented Aug 30, 2017

For DatePicker it is working well and I managed the date format as well.
But for time picker The current Time is 5:03 PM.
I want the time picker to show minimum time as current time and maximum time as 11:59 PM if todays date is selected by the date picker just above the time picker.
But if the upcomming dates are selected i dont want any restriction on time picker.

And also for the time picker It considers the the minimum time as the current time when I reload the page. i.e If I reload the web page on 5:05 PM and using the time picker at 5:07 PM, timepicker doesn't restrict if the I entered the time as 5:06 PM.
Can you please look after this..!!

And thanks for the help..!! _/_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant