Is it possible with the ui.calendar / datepicker to set the minDate to a year from the current date? I have a project that I need to be able to select a date within a year of the current date, if thats not selected, default to 2 weeks ago.
Can this be achieved also with the daterangepicker? Something like this?
https://snippet.webix.com/oanmrv7x
Hello,
If you want to work with a calendar in daterangepicker so the code will look like
{
view:"daterangepicker",
suggest:{
view:"daterangesuggest",
// daterangesuggest properties
body:{
// daterange properties
calendarCount:2,
calendar:{
// properties of each calendar
weekNumber:true,
minDate: webix.Date.add(new Date(), -1, 'year'),
maxDate: new Date()
}
}
}
}
Information about DateRangePicker you can find here
Please check the sample:
https://snippet.webix.com/znhfxvcb
Hello,
Im trying to change the calendar range of a daterangepicker dateMax on suggest (daterangesuggest), but doesn´t works, even using a refresh… Can anyone help me?