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

  • Home
  • SEARCH
  • 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 6997717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:19:08+00:00 2026-05-27T20:19:08+00:00

I am trying to add a day to a date retrieved as below //reading

  • 0

I am trying to add a day to a date retrieved as below

//reading fromdatabase
Dim expenddt_ As String = rdr("Expected_End_Date").ToString

Dim dt_1 As Date = Date.Parse(expenddt_)
Dim expenddt As String = dt_1.ToShortDateString()
txtenddt.Text = expenddt

Suppose if expenddt_ the value comes as “11/1/2012 12:00:00 AM”, than dt_1 has the value #11/1/2012# and expenddt has “11/1/2012” so in textbox txtenddt the value appears as expenddt.

Now when i try to add a day to dt_1 as

Dim test As Date = dt_1.AddDays(+1)

Than the value in test comes as 11/2/2012, i.e a month gets added and not the day. How can i add a day?can anyone help me with this issue?

  • 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-05-27T20:19:08+00:00Added an answer on May 27, 2026 at 8:19 pm

    here is a simple example:

    Dim today As System.DateTime
    Dim answer As System.DateTime
    
    today = System.DateTime.Now
    answer = today.AddDays(36)
    

    SOURCE

    ScreenShot

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

Sidebar

Related Questions

I'm trying to get my function to add 1 day to the date I
I am trying to add a constraint in MySQL by member, date and question
I'm trying to add a body class of 'day' if it's 6am-5pm and 'night'
I'm getting a date from a string, parsing it to get the day, month
I'm trying to break up the date and add a single number to the
I'm trying an example: DateFormat df = new SimpleDateFormat(MM/dd/yyyy); String date = 03/09/2010; //30
I am trying to add calendar event using the below code in my android
I have a date time as a string, eg. 2010-08-02, I'm trying to convert
Trying to add a 'box' to a form at design time, I looked up
Trying to add email notification to my app in the cleanest way possible. When

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.