In addition to what Corion has already posted, the first print statement
print "$tdate\n";
seems to produce the output
"10/14/2011"
in which " (double-quote) characters are present at the beginning and end of the string that is printed. Is this something the UnixDate() function is going to be happy with?
BTW: What does baperl think would be the result of executing the
my $trade_dt = DATE(\"$tdate\");
statement? I have my answer...
In reply to Re: inserting date into mysql
by AnomalousMonk
in thread inserting date into mysql
by baperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |