in reply to Re: formatting integers for printing
in thread formatting integers for printing

printf("%02d/%02d/%02d", $month, $day, $year); If you're setting those variable straight from localtime(), and want to avoid displaying "04/13/101" intsead of "05/13/01", best use   printf("%02d/%02d/%02d", $mon + 1, $mday, $year % 100);