Skip to Content
0
Former Member
Mar 30, 2009 at 12:56 PM

how to find the previous months date from teh current date

590 Views

Dear All,

Am working on a 3.1 i version.

Please let me know how i need to find the previous months date from the current date.

i mean current date- 1 month .

This logic will work.

data : w_date like sy-datum.

w_date = sy-daum.

"The statement below will work for everything....

w_date = w_date - 30.

write w:date.

But please tell me how thisis to be handled in case of today.

today being 30th march ,how do i find the one month old date.

Regards,

Abaper.