August 5, 2007 at 2:40 pm
August 5, 2007 at 3:10 pm
declare @date1 datetime
declare @date2 datetime
set @Date1= '08/05/2007'
set @Date2 = '01/01/1900 2:11:00 PM'
select @Date1, @Date2
--
2007-08-05 00:00:00.000 1900-01-01 14:11:00.000
select @Date1 + @Date2
Result
2007-08-05 14:11:00.000
August 5, 2007 at 4:37 pm
it works. thanks
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply