Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Date Convert

by roboticus (Canon)
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.


Comment on Re: Date Convert
Download Code

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 musing on the Monastery: (12)
As of 2014-12-18 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls