in reply to Getting 2-digit dates from localtime()

format the string with sprintf edited: $datestring = sprintf("%02d/%02d/%d",$mth,$day,$year);

-Waswas