ganzqgy Posted December 30, 2013 Posted December 30, 2013 UniDateTimePicker maxDate minDate ? 1 Quote
Sherzod Posted January 2, 2014 Posted January 2, 2014 Hi ganzqgy. Try this: in designtime: UniDateTimePicker1 - > ClientEvents - > UniEvents add beforeInit function beforeInit(sender) { sender.setMinValue(new Date(2013,0,1)); sender.setMaxValue(new Date(2014,11,31)); } or in runtime: UniSession.AddJS(UniDateTimePicker1.JSName + '.setMinValue(new Date(2012,0,1));'); http://stackoverflow.com/questions/10241626/extjs-datefield-initialising-date http://stackoverflow.com/questions/1056728/where-can-i-find-documentation-on-formatting-a-date-in-javascript Sincerely. 1 Quote
elGringo Posted April 10, 2017 Posted April 10, 2017 Be careful here - in js month started from 0 !!! so, to set 2017 04 10 you should write new Date(2017,03,10) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.