http://perldoc.perl.org/perlfaq4.html#How-do-I-find-the-day-or-week-of-the-year%3F
You can extract the YYYY-MM-DD with a simple RegEx (untested code):

$str = q/Timestamp : '2008-01-17 10:24:00'/;
my ($year, $mon, $day) = ($str =~ /\'([0-9]{4})-([0-9]{2})-([0-9]{2})/);

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to