Subtract Week From Date
Posted: Sat Jun 25, 2005 10:29 am
Hi All
I have a requirement where i need to subtract 7 days from the date.The source date has date format of yyyy-mm-dd.
For a sample date of 2003-01-10,the output should be 2003-01-03 and for 2003-01-03 the output should be 2002-12-27
I tried using Oconv and Iconv but could not get to the solution.Please help me to acheive the same.
Thanks in advance
I have a requirement where i need to subtract 7 days from the date.The source date has date format of yyyy-mm-dd.
For a sample date of 2003-01-10,the output should be 2003-01-03 and for 2003-01-03 the output should be 2002-12-27
I tried using Oconv and Iconv but could not get to the solution.Please help me to acheive the same.
Thanks in advance