Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 browsing the Monastery: (7)
As of 2014-10-22 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls