0
Reply

Dates

lwbc64

lwbc64

Nov 20 2004 6:42 AM
1.8k
I'm trying to figure the dates of Weds and Saturday for given month in VB.Net. I did it in Visual Basic 6 using this: Dim getdate As Date Dim getdate1 As Date getdate = Date - Weekday(Date + 7, 0) + 7 getdate1 = Date - Weekday(Date + 3, 0) + 7 But in VB.Net this doesnt work. I tried: getdate = Today - Weekday(Today + 7, 0) + 7 getdate = Today - Weekday(Today + 3, 0) + 7 It doesn't work. I've been trying to figure this out for the past 4 hours. Please help. Thanks