TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aman Jen
NA
141
40.5k
How to use datetimePicker in C#
Sep 1 2013 7:07 AM
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...
Reply
Answers (
1
)
how to return more than one value in function
change existing listbox item color in c#