# File lib/vpim/date.rb, line 143
  def DateGen.weekofdate(year, mon, day, weekstart)
    d = Date.weekstart(year, mon, day, weekstart)
    week = []
    7.times do
      week << d
      d = d + 1
    end
    week
  end