how to get week dates in ruby code example Example: ruby number of week date = Date.new week_number = date.strftime('%-V') # => (1-53)