0
How to edit a calendar with datepick jquery?
The small project consist of small tasks that I don't know how to execute, but for tasks I have to deliver. I don't expect to be just to be what to do. 1.-Datepick is in a specific languaje, and I want to change it to Spanish. 2.- I am asked to disable holidays like new year's day, christmas, labor day, etc. As well as to disable weekends, that is to say, that only shows monday to friday. Thanks in advance for you help.
6 Antworten
+ 1
I'm pretty sure you would have to rewrite / modify their script some how
https://gist.github.com/edymerchk/ef51a0a79d65f7c6549a
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
monthNamesShort: ['Ene','Feb','Mar','Abr', 'May','Jun','Jul','Ago','Sep', 'Oct','Nov','Dic'],
dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
weekHeader: 'Sm',
dateFormat: 'yy-mm-dd',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''
};
$.datepicker.setDefaults($.datepicker)
+ 1
123456 this might help but really I couldn't lock in on es using local
https://code.sololearn.com/Wi2QFbOxUhj9/?ref=app
0
How to disable some dates for example new year?
0
Which is better boostrap Datepicker or jquery?
0
I personally prefer Datepicker jQuery but as to better that's openended as far as client and design as well as who is coding.
0
Thanks, as for the days, do you know how to disable them?