Business Days Help

i would like to make a widget to show me a date selection but i dont want the business days to be selected or any other day that would make the business to stop… i have this code

<?php $this->widget('zii.widgets.jui.CJuiDatePicker',














is there any way to do this on the widget… or i have to define the function in some other place… because it will only work for business days and then to calculate days later to give back a further date which it has to be inside a business day

Not quite sure your question. Is that possible to give an example?

If you’re asking how to disable selected days in the jQueryUI datepicker then this stackoverflow questions got answers to specify the ‘beforeShowDay’ callback option.

If you’re asking how to calculate those days, then you need to include weekends and holidays which vary from country to country.