Skip to Content
0
Former Member
Feb 17, 2009 at 02:39 PM

Problem with Date

77 Views

Hi guys,

I have date1 = sy-datum, which is stored as 20090217 (today's date).

Now, x is a variable which has for suppose '17' now.

In date2, i want to have value which is 17 days earlier, dat is '20090201'.

How can I write the code to fulfill my requiremnt, I havent worked on DATE fields earlier.

So, Iam getting confused.

I know I can find difference between two dates fields by simply subtracting them.

But, my requirement is different.

Waiting for ur suggestuions , guys......

Thanks,

Shivaa...