hi friends,
i have two datetimepickers in a window form application.One datetimepicker is used to select date and second one is for time.
Now i want to combine date from DTP1 and time from DTP2 and update the database with the selected combined datetime value using vb.net.
Thankyou
sidyusuf
0
Light Poster
Recommended Answers
Jump to Postwhat you mean about combine?
Jump to PostTextBox1.Text = DateTimePicker3.Value + " " + DateTimePicker4.Value
Note - DateTimepicker3 has date and Datetimepicker4 has time in it....the value will be displayed in textbox4...and the datetimepicker values are separated by a space
check if u needed the same....
Jump to PostDo you need help with the database update as well? The answer would depend on whether you need help with the query itself or the connectivity. And the answer may depend on what type of database you are using and how you are storing the date/time value.
All 12 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
poojavb
29
Junior Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
G_Waddell
131
Posting Whiz in Training
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
sidyusuf
0
Light Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
G_Waddell
131
Posting Whiz in Training
Mitja Bonca
557
Nearly a Posting Maven
G_Waddell
131
Posting Whiz in Training
sidyusuf
0
Light Poster
poojavb
29
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.