declare @timenow varchar(10)
declare @td datetime
select @timenow=CONVERT(VARCHAR(10),getdate(),120)
SELECT @td=CONVERT(datetime,'2010-03-31',101)
declare @timenow varchar(10)
declare @td datetime
select @timenow=CONVERT(VARCHAR(10),getdate(),120)
SELECT @td=CONVERT(datetime,'2010-03-31',101)