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