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 8718867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:39:18+00:00 2026-06-13T06:39:18+00:00

I made a date picker from the calendar control in ASP.net using C#. The

  • 0

I made a date picker from the calendar control in ASP.net using C#. The date format in the TextBox is 08/01/2012.

When I try to do an insert I get this error:

Message: Input string was not in a correct format.

here is my code:

cmd.Parameters.Add("@date", SqlDbType.DateTime).Value = 
         Convert.ToDateTime(txtDateins.Text);

How do I get that fixed ?

  • 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-13T06:39:20+00:00Added an answer on June 13, 2026 at 6:39 am

    I had my table column defined as 15,2 and then I changed it to 18,2 and everything is working. I don’t know why that happened. I am hoping to find a reason.

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

Sidebar

Related Questions

I'm using a ready made jquery date picker with ASP.NET text boxes. I'm also
I made simple date picker using JavaScript and jQuery. After choosing date it is
I have been using asp.net programming just from few months and I have to
I have a custom control (from MS Toolkit - DatePicker). I've made my own
I have made a cool skin for my date picker. For some reason when
I am using the datepicker binding made by rpn (http://www.knockmeout.net/2011/07/another-look-at-custom-bindings-for.html). I'm struggling a little
I'm using jquery.datePicker-2.1.2 as a date picker. The problem is I need to select
I have made a function to convert a textbox value to date. I want
I'm having some difficulty with the jQuery date picker control. In my application, I'm
I made a function which displays date on the webpage,, and i uploaded the

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.