Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 lurking in the Monastery: (7)
As of 2014-09-16 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls