Hey thanks Andrea . "Mon May 19 23:00:00 2003 NZST" is that standard date
format spat out by Postgres from my DBI query. Odd that its not supported.

mark
----- Original Message -----
From: "Andrea Holstein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 11:22 PM
Subject: Re: add 3 months


Mark Frater wrote:
>
> I'm missing something..
>
> use Date::Manip;
> $paidto ="Mon May 19 23:00:00 2003 NZST";
> $newpaid = &DateCalc($paidto,"+3 month",\$err);
>  print "paidto =$paidto\n";
>  print "newpaid = $newpaid\n";
>
> output
> paidto =Mon May 19 23:00:00 2003 NZST
> newpaid =

I switched the position of "NZST" in $paidto:
$paidto ="Mon May 19 23:00:00 NZST 2003";
                              ^^^^

Now I get what you wanted:
paidto =Mon May 19 23:00:00 NZST 2003
newpaid = 2003081912:00:00

Greetings,
Andrea

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to