Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Date Convert

by roboticus (Chancellor)
on Jan 09, 2013 at 19:26 UTC ( #1012549=note: print w/replies, xml ) Need Help??


in reply to Date Convert

If it's a fixed format input string, I wouldn't bother with strftime. I'm guessing that something as simple as the following should work:

my $date = "01/09/2012"; $date = join("-", reverse split /\//, $date), " 12:00:00";

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012549]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2016-09-26 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (489 votes). Check out past polls.