Code:
Weekofmonth = int((day(YourDate)-weekday(now)-1)/7)+1