Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: inserting date into mysql

by NetWallah (Canon)
on Oct 17, 2011 at 06:02 UTC ( [id://931843]=note: print w/replies, xml ) Need Help??


in reply to Re: inserting date into mysql
in thread inserting date into mysql

Spot-on! (AnomalousMonk ++)

This modification fixes the problem:

my $trade_dt=UnixDate($x=~/([\/\d]+)/,qq|%Y-%m-%d|);
(Assuming you are using UnixDate from Date::Manip)
UnixDate silently returns undef when provided a quoted value.

            "XML is like violence: if it doesn't solve your problem, use more."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found