Concatenating Date and Time from two differnt fields

Concatenating Date and Time from two differnt fields

am 17.01.2008 08:24:29 von 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.

RE: Concatenating Date and Time from two differnt fields

am 17.01.2008 13:54:01 von jignesh

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

Regards
JIGNESH

"Tamer Ibrahim" wrote:

> 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.
>
>
>