in reply to Date formats
Super Search would have given you lots and lots of options ....
here is one way:
#!/usr/bin/perl use strict; my($day, $month)=(localtime)[3,4]; $month++; if ($month < 10) { $month = "0" . $month; } if ($day < 10) { $day = "0" . $day; } my $date = "$month/$day"; print $date;
HTH
- f o o g o d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Date formats
by Kanji (Parson) on Jan 09, 2002 at 09:32 UTC | |
|
Re: Re: Date formats
by rob_au (Abbot) on Jan 09, 2002 at 09:34 UTC | |
by grinder (Bishop) on Jan 09, 2002 at 18:26 UTC | |
|
Re: Re: Date formats
by jlf (Scribe) on Jan 09, 2002 at 09:37 UTC |