You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Callback function for when the selected date is changed
function()
-
placeholder
Sets datepicker input placeholder attribute
boolean
false
showTodayBtn
Whether to show "Today" button
boolean
false
startDate
Sets the start date
string
false
How to use
consttoday=moment().format('YYYY-MM-DD');constmaxDate=moment().utc().add(120,'y').format('YYYY-MM-DD');constminDate=moment(0).utc().format('YYYY-MM-DD');// January 1st, 1970constplaceholder='Start date';constfooter='This is a footer';functiononChange(e){console.log('change',e.target.value);}<DatePickerid={1}name='date_from'initial_value=''placeholder={placeholder}startDate={today}minDate={minDate}maxDate={maxDate}onChange={onChange}is_nativepicker={false}showTodayBtn={true}footer={footer}/>