[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New version of DATE



Dear All,

I  am very very simple problem. Problems are as follows:



1. How do I get previos day value:

   $mydate = date '$d-$m-$y'
   #current date.
   $mydate = date '($d-1)-$m-$y'
    #?? Somethings like that.

LINUX have various option for such date command. Such as,
---------------------------------------------------
To print the date of the day before yesterday
 
              date --date '2 days ago'
 
       To  print  the  date  of  the day three months and one day
       hence
 
              date --date '3 months 1 day' 
--------------------------------------------------

HOw ca I get latest version of date command for DU 4.A.

Thanking you,

Azhar