in reply to Re: date in required format
in thread date in required format

You do the math (subtract a day). Date math can be very complicated (daylight savings, etc), which is why you should use DateTime.

Replies are listed 'Best First'.
Re^3: date in required format
by namishtiwari (Acolyte) on Jul 30, 2009 at 09:29 UTC
    Any sample example of using DateTime. Thanks NT
Re^3: date in required format
by namishtiwari (Acolyte) on Jul 30, 2009 at 09:45 UTC
    Hi Monks, I got it working this way.
    my($var1 ,$var2 ,$var3 ,$var4 ,$var5) = split (/ /, scalar (localtime( +time - 86400))); my $dateformat = "$var2$var3$var5";
    Thanks NT