bug #2506 Datepicker displays wrong week numbers

fix bug #2506 Datepicker displays wrong week numbers.
also fixed another week number bug:
It calculates the ISO 8601 Week Number only for the first row of a month and for the following rows of this month
it just increments the week number.
This generally works, but it may create wrong week numbers for December and January.