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