in reply to Week number of the month
What defines which month a week is in?
Date::Calc looks like it might have the tools you need.
# Format YYYYMMDD my $todays = $t->ymd(""); print "Today = 20160325"; [download]