That's not the problem, i'm afraid moment node will return always a string.
But i solve with the other idea: get the number of the week frm the date. I set the moment node to return date in WW format, then i change the string into a number looking at this discussion