Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The output is#!/usr/bin/perl use Date::Format; my $date = '20080501'; print time2str("%Y-%m-%d", $date), "\n";
So How can I get the date in the format 2008-05-011970-08-21
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert date
by Corion (Patriarch) on Jul 15, 2009 at 07:13 UTC | |
|
Re: Convert date
by ropey (Hermit) on Jul 15, 2009 at 08:22 UTC | |
by Anonymous Monk on Jul 15, 2009 at 09:29 UTC | |
by Corion (Patriarch) on Jul 15, 2009 at 09:39 UTC | |
|
Re: Convert date
by Anonymous Monk on Jul 15, 2009 at 07:15 UTC | |
by Anonymous Monk on Jul 15, 2009 at 07:27 UTC | |
|
Re: Convert date
by ambrus (Abbot) on Jul 15, 2009 at 16:21 UTC |