ganzqgy Posted December 30, 2013 Share Posted December 30, 2013 UniDateTimePicker maxDate minDate ? 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 2, 2014 Share 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 Link to comment Share on other sites More sharing options...
ganzqgy Posted January 2, 2014 Author Share Posted January 2, 2014 good!think! Quote Link to comment Share on other sites More sharing options...
elGringo Posted April 10, 2017 Share 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 Link to comment Share on other sites More sharing options...
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.