# File lib/vpim/date.rb, line 127
  def Date.weekstart(year, mon, day, weekstart="MO")
    wkst = Date.str2wday(weekstart)
    d = Date.new(year, mon, day)
    until d.wday == wkst
      d = d - 1
    end
    d
  end