Concatenating Date and Time from two differnt fields

T

Tamer Ibrahim

Hi,
I have two different text boxes. One is for reading user input date and the
other is for reading user input time.
How can concatenate both of the two fields and save them as one data value
to a datetime field in the database? I'm using SQL 2005.
 
J

JIGNESH

eg.
Dim x As DateTime = Convert.ToDateTime("19-Feb-2008 " + "3:45pm")

Regards
JIGNESH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top