use POSIX 'strftime'; # what week is December 1, 2003? # strftime takes month-1 and year-1900 as arguments print strftime("%U",0,0,0,1,11,103); # or use "%V" for weeks starting Monday