Topic: datepicker how to hide years less then given year

modadvisor free asked 3 years ago

Dear Sir,

I checked datepicker example but i can not find the solution related my problem.

i wan to disable all years which are less then 2017. user should not able to select any dates which is less than 1st january 2017. please help to fix this issue in the datepicker. i mean what i need to pass for that ?

modadvisor free commented 3 years ago

any update sir ?

Mikołaj Smoleński staff answered 3 years ago

This kind of limitation is described in our docs:

Here's the js part of it:

  import { mdbDatePicker2 } from 'mdbvue';
  export default {
    name: 'Example',
    components: {
    data() {
      return {
        toLimit: [{
          type: 'to',
          to: '2017-01-01'

Best regards

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: PC
  • Browser: google chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No