src/constraint/dayofweekcount.js
function(d) {
    return d.dcStart || (d.dcStart =
      later.date.next(
        later.Y.val(d),
        later.M.val(d),
        Math.max(1, ((later.dc.val(d) - 1) * 7) + 1 || 1)));
  }
function(d) {
    return d.dcStart || (d.dcStart =
      later.date.next(
        later.Y.val(d),
        later.M.val(d),
        Math.max(1, ((later.dc.val(d) - 1) * 7) + 1 || 1)));
  }
function ( d ) { return d . dcStart || ( d . dcStart = later . date . next ( later . Y . val ( d ) , later . M . val ( d ) , Math . max ( 1 , ( ( later . dc . val ( d ) - 1 ) * 7 ) + 1 || 1 ) ) ) ; }
The first day of the month with the same day of week count as the date
specified.

@param {Date} d: The specified date
The first day of the month with the same day of week count as the date specified .