Hi Rick,

> 
> On Tue, 9 Dec 2003 12:29:33 -0800 , Hill, Ronald wrote 
> > my $dt = DateTime::Format::UGAnswer->parse_date('Jan 26 2001'); 
> >  
> > print $dt->mdy; 
> >  
> > I have tried messing with this line in the package 
> > strptime  => '%B%N%d%N%Y' in order to get it to work but nogo 
>  
> %N is nanoseconds. You might want to look at %n, except that 
Ops!!, yep that works :) 

> it's not backwards 
> compatible in that $dt->strptime('%B%N%d%N%Y'') will return newlines: 
> Jan 
> 26 
> 2001 
>  
> If you know that the string is 10 characters long, then I'd 
> just used vanila spaces in your 
> pattern: 
> '%B %d %Y' 
That is what I tried and it works. However,
I did take out the length requriment so I can
have: 

$dt = DateTime::Format::UGAnswer->parse_date('January 26 2001');
as well. Seems to work :)

Thanks

Ron Hill

Reply via email to