Need some your help.
I have two datetimepickers on my form: dt1 and dt2.
dt1 is for picking a date.
dt2 is for picking a time.
How can I get a DateTime dt where Date component is from dt1 and time component is from dt2 ?
C#, .net 2.0
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can read the Date component from the value of
dt1and the time component from the value ofdt2and combine them with theAddmethod, like this: