smDateTimeRangePicker icon indicating copy to clipboard operation
smDateTimeRangePicker copied to clipboard

Disable past dates

Open vikasinnoeye opened this issue 7 years ago • 15 comments

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

vikasinnoeye avatar Jul 21 '17 12:07 vikasinnoeye

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

vamsideepak avatar Jul 22 '17 02:07 vamsideepak

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

vikasinnoeye avatar Jul 24 '17 07:07 vikasinnoeye

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

vikasinnoeye avatar Jul 24 '17 07:07 vikasinnoeye

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 avatar Jul 25 '17 06:07 vamsideepak

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

vamsideepak avatar Jul 25 '17 06:07 vamsideepak

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.

vikasinnoeye avatar Jul 25 '17 13:07 vikasinnoeye

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

vamsideepak avatar Jul 25 '17 13:07 vamsideepak

hi Deepak, thanks for your help.

vikasinnoeye avatar Jul 25 '17 13:07 vikasinnoeye

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

vikasinnoeye avatar Jul 25 '17 13:07 vikasinnoeye

welcome buddy

vamsideepak avatar Jul 25 '17 13:07 vamsideepak

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

vamsideepak avatar Jul 25 '17 13:07 vamsideepak

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 avatar Jul 25 '17 13:07 vikasinnoeye

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

vikasinnoeye avatar Jul 25 '17 13:07 vikasinnoeye

if u know about these tell me too buddy . keep in touch. its my mailid => [email protected]

vamsideepak avatar Jul 25 '17 13:07 vamsideepak

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

vikasinnoeye avatar Jul 25 '17 13:07 vikasinnoeye