Finding the week number

week_number = Time.now.strftime("%U") #=> 49

Resources