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