Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:37:09+00:00 2026-06-12T12:37:09+00:00

How in VB.net would you take a date say today. And then find the

  • 0

How in VB.net would you take a date say today. And then find the what the date of Monday or Friday of the following week. If today is Thursday and I am searching for the next Friday then I would want tomorrow’s date?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:37:10+00:00Added an answer on June 12, 2026 at 12:37 pm

    You could use the DayOfWeek enumeration to find this:

    Private Function GetNextDate(day As DayOfWeek) As DateTime
        Dim now As DateTime = DateTime.Today
        Dim today As Integer = CInt(now.DayOfWeek)
        Dim find As Integer = CInt(day)
    
        Dim delta As Integer = find - today
        If delta > 0 Then
            Return now.AddDays(delta)
        Else
            Return now.AddDays(7 - delta)
        End If
    End Function
    

    Using your example, if you call:

    Dim date = GetNextDate(DayOfWeek.Friday)
    

    You’d get tomorrow’s date

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take the following lines of code that would work fine in a c# asp.net
With C# .NET i would like to DL 2 webpages and find the DIFF
I would like to take text from a file and then send it to
Does the following generic function exist anywhere in the .NET 4.0 framework? I would
In .NET I would use System.Diagnostics.Trace... What would I use in C or C++
in vb.net i would like to change the hue and saturation and darkness of
in vb.net i would like to draw a regular line on a form. is
I would like to create a console program in VB.net that would allow parameters.
I am learning ASP.NET and would like to know what are the must have
I am creating a diagnostic page for ASP.NET and would like to programatically detect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.