in reply to Missing Something
scalar localtime;
which pretty-prints a date for you, than doing all that stuff with $month+=1900; $year++ (or is it the other way round ;-)
dave