>Whil Hentzen said years ago, "If it's easy for the user, it's hard for the developer". You can set a data annotation for the minimum date, but it won't affect the data picker AT ALL. If you want to limit the selectable dates in the date picker, you need to code it into the javascript. Go with what works.
>
>As for the CDN issue, perhaps it's a different version than what you have locally. It's going to make it faster for the user, but probably not significantly.
>
Thanks, Craig. I understand that setting annotation at present will not automatically set DataPicker MinDate. However, I want to be able to make it work.
I am just not sure at this moment how. Say, setting DataType[DataType.Date] works already automatically with using Date Time Picker after I added the Editor Folder and date.chtml according to .
http://www.asp.net/mvc/tutorials/javascript/using-the-html5-and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc/using-the-html5-and-jquery-ui-datepicker-popup-calendar-with-aspnet-mvc-part-4This works (or almost works as I had to switch to TextBox because of another problem).
I am thinking perhaps creating something similar and assigning the editor I can make it work in the most generic sense also.
Since I am obviously lacking all the understanding and good JavaScript knowledge, I'll put this problem aside for now and do it directly in the view.
If it's not broken, fix it until it is.
My Blog