Jump to content

UniDateTimePicker maxDate minDate


ganzqgy

Recommended Posts

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.
  • Like 1
Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...