logisticinfotech / ionic4-datepicker

Ionic 4 Datepicker component
https://www.logisticinfotech.com/blog/ionic4-datepicker-component/
Other
77 stars 33 forks source link

Can pick date over year of 2020 #24

Closed sahyun1 closed 5 years ago

sahyun1 commented 5 years ago

I can only select upto 2020, is this what's expected? image

sahyun1 commented 5 years ago

ok, by setting toDate to in the future, problem solved. I think this is quite normal behaviour.

Robertjr1992 commented 4 years ago

@sahyun1 does it worked for you by setting toDate to in the future if yes can you tell me the version which you are using as I'm having an issue it's not showing the future years

sahyun1 commented 4 years ago

@Robertjr1992 yes it's still working, I'm using v1.4.3

This is snippet from my code

const datePickerObj = {
      mondayFirst: true, // default false
      closeOnSelect: true,
      toDate: new Date('2040-12-31'),
      inputDate: moment(date).format('DD-MM-YYYY'),
      titleLabel: 'Select a Date', // default null
      dateFormat: 'DD-MM-YYYY', // default null
      monthsList: ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'],
      weeksList: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
      showTodayButton: true
    };

    const datePickerModal = await this._modalCtrl.create({
      component: Ionic4DatepickerModalComponent,
      backdropDismiss: false,
      mode: 'md',
      cssClass: 'li-ionic4-datePicker',
      componentProps: {'objConfig': datePickerObj}
    });
Robertjr1992 commented 4 years ago

@sahyun1 does it work for iOS because I'm only having an issue with iOS device I tried to debug and getting error in iOS debugger I tried both 1.4.3 and 1.4.4 same issue

Screenshot 2020-10-20 at 2 35 35 PM

e

sahyun1 commented 4 years ago

By looking at the error I think your issue is not toDate. Get it working first then add toDate

Get Outlook for Androidhttps://aka.ms/ghei36


From: Robertjr1992 notifications@github.com Sent: Tuesday, October 20, 2020 10:06:16 PM To: logisticinfotech/ionic4-datepicker ionic4-datepicker@noreply.github.com Cc: Alston Kim sahyun1@hotmail.com; Mention mention@noreply.github.com Subject: Re: [logisticinfotech/ionic4-datepicker] Can pick date over year of 2020 (#24)

@sahyun1https://github.com/sahyun1 does it work for iOS because I'm only having an issue with iOS device I tried to debug and getting error in iOS debugger [Screenshot 2020-10-20 at 2 35 35 PM]https://user-images.githubusercontent.com/69619444/96565086-86984600-12e1-11eb-91bf-b13746b4892f.png e

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/logisticinfotech/ionic4-datepicker/issues/24#issuecomment-712707207, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYEPAPPDFNUVXAAWXNHLKTSLVHIRANCNFSM4HYTAQYQ.