Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to use datetimePicker in C#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Aman Jen
11y
1.2k
1
Reply
Hi,
How to use Datetime Picker to insert record into sql Db usin C# code..below is my code..but isn't working , it's a Standalone Application
AppointmentClass ap = new AppointmentClass();
string dateString = this.dtP.Text;
int rown= ap.insert(Convert.ToInt16(cboRepair.SelectedValue), tbDesc.Text, chkLinc.Checked, Convert.ToInt16(cboCustomer.SelectedValue),DateTime.Parse(dateString.ToString()));
showing error like below
when converting a string to datetime parse the string to take the date before putting each variable into Datetime
plz help...
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to return more than one value in function
change existing listbox item color in c#