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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:47:55+00:00 2026-06-09T08:47:55+00:00

I am new in VB.net, sql and even phpmyadmin gui. I want to record

  • 0

I am new in VB.net, sql and even phpmyadmin gui. I want to record the date using DateTimePicker in vb.net. I was be able to record the data but date is the only one which is not recorded. It is appeared as 0000-00-00 in phpmyadmin. Type is DATE.

This is my code used in VB.NET:

 date_of_confinement = Date.Parse(dtpDate.Value)

 Dim SQLStatement As String = "INSERT INTO patient(date_of_confinement) VALUES('" & Date.Parse(dtpDate.Value) & "')"
            SaveInfos(SQLStatement)

Any help would be appreciated. Thanks!

  • 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-09T08:47:56+00:00Added an answer on June 9, 2026 at 8:47 am

    date_of_confinement =Format(dtpDate.Value, "yyyy-MM-dd")

    then insert this value to the query. MySQL will store the date in “yyyy-MM-dd” format.

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

Sidebar

Related Questions

I am new in vb.net, sql and even record data in phpmyadmin. When I
I'm new at LINQ, searching the net for LINQ samples that mimic SQL's LIKE
I am new to .NET and ideally want to make several layers of abstraction
I am fairly new to .NET C# development and recently started using LINQ to
I got a problem. When i'm creating the new project in ASP.NET using VS
Using SQL Membership Provider for ASP.NET membership. I'm using first.last as the username, which
I created one asp.net mvc application using linq to sql, and in the generated
I have a SQL Server database and I'm using ADO.NET ExecuteReader to get a
I am writing a C#.Net windows application using EF for communicating with SQL Express.
I'm using linq to sql for MySql (using DbLinq) in an ASP.NET MVC website.

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.