ibanix has asked for the wisdom of the Perl Monks concerning the following question:
However, I'd really like to not reinvent well-working wheels -- is there a good date formatting function that will do this? I attempted to make localtime() do what I needed, without immediate success.$datefield = 'MM/DD/YYYY'; ($mon, $day, $year) = split(/\//,$datefield,3); $finaldate = $year."-".$mon."-".$day;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date formatting
by davorg (Chancellor) on Jun 30, 2003 at 13:04 UTC | |
|
Re: Date formatting
by dragonchild (Archbishop) on Jun 30, 2003 at 13:10 UTC | |
by davorg (Chancellor) on Jun 30, 2003 at 14:14 UTC | |
by dragonchild (Archbishop) on Jun 30, 2003 at 15:16 UTC | |
by davorg (Chancellor) on Jun 30, 2003 at 15:28 UTC | |
by xdg (Monsignor) on Jun 30, 2003 at 14:00 UTC | |
|
Re: Date formatting
by nite_man (Deacon) on Jun 30, 2003 at 16:01 UTC |