> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst); > ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
why not combine the 2 line as : my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); > $year+=1900; > $date = $year.$mday.$mon; > > .... How do I get the day to be two digit? > Your day is already 2 digits, are you talking about $mon ? Method 1 : $mon = '0'.$mon if length($day) == 1; Method 2 : $mon = '0'.$mon if $day < 10; Note, beware to make $mon++ if you don't want $mon = 0 at January; Rgds, Connie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
