There is a jQuery UI calendar.
<script type="text/javascript"> $(function(){ $('#datepicker').datepicker({ inline: true, firstDay: 1, showOtherMonths:true, dateFormat: "dd.mm.yy", dayNamesMin: ['ВС', 'ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ'], monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], maxDate: new Date(2012, 7, 31), minDate: new Date(2012, 5, 1), hideIfNoPrevNext: true, onSelect: function(dateText, inst) { $("#actualDate").html(dateText); } }); }); </script>
When you click on a date, it span#actualDate
it into span#actualDate
. Tell me how to make it so that the choice of a date not only the first condition is fulfilled, but also the date of the beginning of the week and the date of the end of the week are displayed in another span (for example: from 11.06.2012 to 17.06.2012).