Topic: datepicker selectYears Editor
Delari pro asked 6 years ago
Hello Tell me how to include in the Datepicker input mode of the desired year for a quick search At the current time, I can choose from a drop-down list, I would like to speed up the process by entering the desired year, not by scrolling through the list
$('.datepicker').pickadate({ monthsFull: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], weekdaysShort: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], showMonthsShort: true, selectYears: 20, selectMonths: true, //editable: true, today: 'Сегодня', clear: 'Очистить', close: 'Закрыть', formatSubmit: 'dd/mm/yyyy'}); and have on picker start year -> 1917 but have in controller this var model = new Employee { BithDate = DateTime.Today };
Marta Wierzbicka staff answered 6 years ago
Delari pro commented 6 years ago
those. the datapyker does not work in full, the current date for the selection begins with 1917 - is this normal?Mikołaj Smoleński staff answered 6 years ago
Delari pro answered 6 years ago
in the new version 4.5.8, the problem of the current date is eliminated there remains the question of how, with manual selection, logic: when selecting a date, you can enter manually or select from datepicker that my html https://dropmefiles.com/jDjDa and have problem with format date - can't leave only date and change format to 'dd.MM.yyyy'
Marta Wierzbicka staff answered 6 years ago
.datepicker
: https://mdbootstrap.com/javascript/date-picker/, only with this initialization: $('.datepicker').pickadate();
, the current date is 2018. Try to check your custom code because maybe there are some errors in it. I'll try to help you or someone from our team but please, describe your problems in details and attach any preview/demo and it will be easier for us to give you a faster and better answer.
Best,
Marta
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No