Extracting week count from current System time using ruby

Hi im trying to extract the week count from the current System time using ruby filter but im getting error

this is how my filter looks

code => "event['WeekNumber']= Time.now.strftime("%U").to_i"

anyone please provide the proper code for that.

Thank you

For effective help always include the exact error message you get. Don't just say "I'm getting error".

You can't have double quotes inside the Ruby code. Replace "%U" with '%U'.