-- Create test case DECLARE @myDateTime DATETIME SET @myDateTime = '2008-05-03' -- Convert string SELECT LEFT(CONVERT(VARCHAR, @myDateTime, 120), 10)