Are you using SQL Server 2008R2?
DECLARE @start_dttm datetime; SET @start_dttm = '2012-02-21 23:30:59.599'
SELECT @start_dttm AS start_dttm
, CONVERT(time,@start_dttm) AS start_dttm_time
, CONVERT(date,@start_dttm) AS start_dttm_date
Brett
8-)
Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Want to help yourself?
http://msdn.microsoft.com/en-us/library/ms130214.aspx
http://weblogs.sqlteam.com/brettk/
http://brettkaiser.blogspot.com/