how to find specific date?

  • Thread starter Thread starter ibiza
  • Start date Start date
I

ibiza

Hi all,

I need to find a specific, for example the third friday of a given
month/year. How to do that?

thanks :)
 
It should be something like this

Dim myDate as new date(year,month,1)
Do While myDate.DayOfWeek <> Friday
myDate = myDate.AddDay(1)
Loop

myDate = myDate.AddWeeks(2)

That should give you third friday of given year/month.
 
Back
Top