This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I'm having a problem with inserting date from datetimepicker into sql. The thing is - I don't know how to do it. This is how it should work : In the button Insert I want to put name, surname and date of birth into sql database. So I have Person p=new Person(); p.Name=nameTextBox.Text.Trim(); p.surName=surNameTextBox.Text.Trim(); p.dateOfBirth= // I don't know how Thanks in advance. |
|
|
Hello Stevan You can get the DateTime from the DateTimePicker.Value property. Jason Fauchelle |
|