I have a date column with datatype as Date
and a time column with datatype as Time
.
Column A Column B
4/6/2015 13:25:18
4/10/2015 12:52:14
4/10/2015 10:39:48
I need to join these two columns and insert into a column with datatype Datetime
.
Column C
2015-06-04 13:25:18
2015-10-4 12:52:14
2015-10-4 10:39:48
I have only date in one column and only time in another column and i'm using the below now which is throwing an error
CONVERT(datetime, LEFT([ColumnA], 12) + LEFT([Column B], 7), 101) as ColumnC