FOLLOW ME...
In table1 have:
27/08/2006
25/10/2009
18/10/2009
11/10/2009
05/04/2009
....
if you see all date are a sundays
well, based the date 01/01/2000 to the actual sunday 25/10/2209 the range of sunday date contain:
02/01/2000
09/01/2000
16/01/2000
...
25/10/2209
i want to match from the sundays dates in Table1 all sundays date in range from 01/01/2000 to 25/10/2009...
now, one or more sunday date present in Table1 not are matched in the range 01/01/2000 to 25/10/2009 insert into table LOST_DATe the syndays date not matched...
clear now?
for example:
07/01/2001 not is present in the Table1 store into table LOST_DATE, 03/10/2004 not is present in the Table1 store into table LOST_DATE...
Main Topics
Browse All Topics





by: Roads_RoadsPosted on 2009-10-30 at 01:13:15ID: 25700875
not sure what you mean, but checking for a particular day to be sunday goes like this
If Date.Today.DayOfWeek = DayOfWeek.Sunday Then
...
you have to cycle through the dates from beginning to end replacing today with current date