Answers for "sql server CONVERT(VARCHAR, GETDATE(),101)"

SQL
1

How to convert DateTime to VarChar SQL

-- Create test case
DECLARE @myDateTime DATETIME
SET @myDateTime = '2008-05-03'
-- Convert string
SELECT LEFT(CONVERT(VARCHAR, @myDateTime, 120), 10)
Posted by: Guest on July-28-2021
0

sql cast date to 103

cast date to 103
Posted by: Guest on June-15-2021

Code answers related to "sql server CONVERT(VARCHAR, GETDATE(),101)"

Code answers related to "SQL"

Browse Popular Code Answers by Language