Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

start date and end date validation antd

//You can pass your custom dates within the isAfter brackets 

<DatePicker disabledDate={d => !d || d.isAfter("2002-12-31") || d.isSameOrBefore("1960-01-01") } format="YYYY-MM-DD HH:mm:ss" defaultPickerValue={moment("2002-12-31")} placeholder="Start" />
 
PREVIOUS NEXT
Tagged: #start #date #date #validation #antd
ADD COMMENT
Topic
Name
8+7 =