PDA

View Full Version : How to restrict user from selecting old dates



chetan.nellekeri
12 May 2014, 10:04 PM
Hi,
I am using the date field. User should be able to select todays date and future date. Hence all the old dates should be disabled.. How to achieve this..?

jsakalos
12 May 2014, 11:39 PM
minValue (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.Date-cfg-minValue) config option can be used to set the minimum date

chetan.nellekeri
13 May 2014, 2:17 AM
Thank you...
below code worked...
minValue: new Date()