Skip to Content
0
Former Member
Sep 12, 2011 at 07:13 PM

Code for the the previous Sat and Sat four weeks prior based on todays date

18 Views

Hi All...

I am looking for a bit of code to work out the following in a variable customer exit...)

Based on system (todays) date calculate the actual calendar day for

1. the last previous Saturday

2. the Saturday 4 weeks prior to 1.

i.e todays date is for instance 12th September 2011 then results code needs to produce is

1. 10/09/2011

2. 13/08/2011

Thanks in advance,

Steve;)