thats beacue you replaced the ref of weekstartdate with
weekenddate... they are now the same date - changes to one affects
the other.
try instead:
Dim weekenddate, weekstartdate As Date
weekenddate=new Date
weekstartdate=new Date
weekstartdate.TotalSeconds=weekenddate.TotalSeconds-604800
mike
--
Mike Woodworth
[EMAIL PROTECTED]
On Apr 20, 2006, at 3:34 PM, Wade Little wrote:
Should this not work to get me one date and then the second one a
week before???
Dim weekenddate, weekstartdate As Date
weekenddate=new Date
weekstartdate=new Date
weekstartdate=weekenddate
weekstartdate.TotalSeconds=weekstartdate.TotalSeconds-604800
When I do this both dates are the same.....
Wade
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>