September 28, 2005 at 1:09 am
anyperson who can help me to separate 27/09/2005 12:42:32 into 27/09/2005 and 12:42:32 ???
thanxs
September 28, 2005 at 2:16 am
Try this
SELECT
getdate() as CurrentDateTime,
substring(convert(varchar(100),getdate(),120),9,2)+'/'+
substring(convert(varchar(100),getdate(),120),6,2)+'/'+
left(convert(varchar(100),getdate(),120),4) as CurrentDate,
substring(convert(varchar(100),getdate(),120),12,2)+':'+
substring(convert(varchar(100),getdate(),120),15,2)+':'+
right(convert(varchar(100),getdate(),120),2) as CurrentTime
September 28, 2005 at 2:36 am
select convert(varchar(11),'27/09/2005 12:42:32 ',103)
Select convert(varchar(10),convert(datetime,'27/09/2005 12:42:32 ',103),108)
September 28, 2005 at 4:36 am
btw this way
select convert(varchar(11),'27/09/2005 12:42:32 ',103)
is still error when
27/09/2005 12:42:32
i change into
2/09/2005 12:42:32
anyanother can help me????????
thanxs you very much for Deni Kusdeni and Ananda Kumar
September 28, 2005 at 5:42 am
September 28, 2005 at 6:27 am
thanx you very much for Otto.........
i have try it........ anda success
but do you know the simple procedure that have been created by Microsoft SQL Server Team ????
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply