Vb.Net - How to find Friday date of Current Week?

Good Day Experts!

I am trying to find the best way to solve my issue.  I have tried searching the net but cannot piece together the best way to achieve it.  

Based on the current date for the day, how can I find the date for the Friday? So today is 3/16/2015 and I would get 3/20/2015.  Is there a function I can use or will I have to do this in a few steps?

Thanks,
jimbo99999
Jimbo99999Asked:
Who is Participating?
 
Wayne Taylor (webtubbs)Commented:
Try this...

    Dim dFriday As Date = Today.AddDays(DayOfWeek.Friday - Today.DayOfWeek)

Wayne
0
 
Jimbo99999Author Commented:
Thanks.  I will try in the morning.
0
 
Jimbo99999Author Commented:
Worked great...thanks again,
jimbo99999
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.