kalyanrajsista has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I'm trying to parse date but is giving irrelevant output for me...please find the code
OUTPUT
20/Apr/30Expected OUTPUT
30/Apr/10#!/usr/bin/perl use strict; use Date::Manip; Date_Init("TZ=EST5EDT"); print "Hello, World...\n"; my $date = '30-04-2010'; $date = UnixDate($date, "%e/%b/%y"); print $date;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem parsing date with Date::Manip
by JavaFan (Canon) on Jul 27, 2010 at 13:28 UTC | |
|
Re: Problem parsing date with Date::Manip
by moritz (Cardinal) on Jul 27, 2010 at 09:57 UTC | |
by kalyanrajsista (Scribe) on Jul 27, 2010 at 10:12 UTC | |
by Anonymous Monk on Jul 27, 2010 at 10:22 UTC | |
|
Re: Problem parsing date with Date::Manip
by duelafn (Parson) on Jul 27, 2010 at 14:30 UTC | |
|
Re: Problem parsing date with Date::Manip
by Anonymous Monk on Jul 27, 2010 at 10:19 UTC |