Possible to set the minDate a year from the current date of a datepicker or daterange?

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.

https://snippet.webix.com/xbg1jubu

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?

https://snippet.webix.com/1xn2z5po