Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.


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 taking refuge in the Monastery: (12)
As of 2015-07-28 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls