mominsamir / smDateTimeRangePicker

Angular Material Date Picker, DateTime Picker, Date Range Picker, Date Time range picker
http://mominsamir.github.io/smDateTimeRangePicker/
MIT License
130 stars 50 forks source link

Disable past dates #167

Open vikasinnoeye opened 6 years ago

vikasinnoeye commented 6 years ago

How can I disable the past dates and only enable the Today's Date and Future date in Date Picker.

vamsideepak commented 6 years ago

set the attribute min-date="minDate" it should work

vikasinnoeye commented 6 years ago

Thanks for your replay but I have already figured it out. But Thanks for your help.

vikasinnoeye commented 6 years ago

But I have one more issue, how can I do it for hours also, to enable current and upcoming hours only, and how to show only 12 hours in the hours list. Thanks

vamsideepak commented 6 years ago

we have the attribute => format = "DD-MM-YYYY hh:mm" u can change like this. but with this date picker we cant enable disable current date and upcoming hours.

vamsideepak commented 6 years ago

and need to ask some experieced person . i dnt know much . i have only one year of experience.

vikasinnoeye commented 6 years ago

format = "DD-MM-YYYY hh:mm that doesn't help for showing the hour's count. It is only working with 12 hours time but still shows 23 hours.

vamsideepak commented 6 years ago

am sorry buddy if i know the answer i will definitely pass to u. check once mode= ""; http://angular-js.in/date-time-picker/ go through this link

vikasinnoeye commented 6 years ago

hi Deepak, thanks for your help.

vikasinnoeye commented 6 years ago

I have one more query let me know if you know how can I show the current selected hours on opening time calendar.

vamsideepak commented 6 years ago

welcome buddy

vamsideepak commented 6 years ago

i saw this question previous days but until now they are not developed such a way. now this date-picker is under development.

vikasinnoeye commented 6 years ago

can we show time like this on opening the time calendar => https://www.awesomescreenshot.com/image/2685700/27b0f50b53aa150b3ce77105f9854b5f

please let me know if you can help me with that, also where I can get more help regarding the issue.

vikasinnoeye commented 6 years ago

ok Thanks, will keep checking for the new updates until then I have to customize for my needs.

vamsideepak commented 6 years ago

if u know about these tell me too buddy . keep in touch. its my mailid => vamsideepak123@gmail.com

vikasinnoeye commented 6 years ago

Sure, I will keep you updated with new features I have added in the Date Picker. Thanks For your all answers.