On 18 Sep 2002 at 18:09, Jimmy George wrote: > I am trying - half heartily right now - to get a DDMM or similar date > back from a users server to write to a file when they fill in an order > form. My first attempt of :-
I'm not sure what you're doing with the SSI but here's some code to help munge a date into the format you're after: my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); my $fulldate = sprintf "%4d/%02d/%02d\n", 1900+$year, $mon+1, $mday; my $daymon = sprintf "%02d/%02d", $mon+1, $mday; See sprintf (perldoc -f sprintf) for details about the formatting options of the input string. Hope that helps, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]